These are some of the games included with the library. These will give you a feel for working with grids in games, and using some of the algorithms.


Lights Out

Lights out on a Hexagonal Grid

This is a hexagonal version of Lights Out. The aim of the game is to “switch off all the lights”. Whenever you click on a cell, all it’s neighbors are switched from off to on or from on to off.

PLAY THE GAME, SEE THE CODE

lightsoutcairo_headerLights Out on a Cairo Pentagon Grid

This is the same game as above, just on a more exotic grid.

PLAY THE GAME, SEE THE CODE

Pipes

Pipes

In this game, you have to connect all the pipes in the grid. You can rotate cells by clicking on them. Once all pipes in a cell are connected, the cell lights up. You are done when all the cells are lit up.

SEE THE CODE

Lines

Lines

This is a hexagonal version of the game Lines. In this game, a bunch of colored cells are added each turn. You can move a cell from one position to another. If you make a line of 4 cells of the same color, you get another turn with out new cells being added. The goal of this game is to play as long as possible before the grid becomes full.

SEE THE CODE

Image Slider Puzzle

Slider Puzzle

Restore the original image by moving cells into the empty space.

SEE THE CODE

Blocks Slider

Blocks Slider Puzzle

Free the blue block by moving it to the exit squares. You can move blocks into empty spaces.

SEE THE CODE