Skip to content

PhilBanus/PHP-Boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Boxes

PHP Grid Game

There are currently two modes, when loading index.php, you will be prompted to play either Sandbox (Original Task) mode or Campaign mode.

The game idea is simple, you have a grid of squares to choose from. When the user clicks on a square they will then be told if they won or lost.

Campaign mode - User has 3 lives per a level, the levels progressively harder (1x1 then 2x1 , 2x2, etc.. ) They will be told on each attempt how far they are away from the Winning Square.

Sandbox mode - user picks X x Y grid and has one chance to find the winning square. Map mode can be toggled on or off.

Click here for demo.