| WebSys Fall 2006 HW3: PHP Lights Out |
| WebSys Home |
You need to create the same game you did in HW2 (a Lights Out game), but now all the game logic must be provided by PHP. You need to support the same functionality:
Start a new game at any time (by pressing a button or some similar action). You need to use a random number generator to produce a different game each time!. NOTE: You don't have to ensure that the game generated is solveable!
The user must be able to pick a board size. You only need to support boards that are square and have no fewer than 3 and no more than 10 rows.
Recognize when someone has won and provide some indication that the user is brilliant.
If you want to provide some fancy javascript based User Interface support, that is OK - but otherwise there should not be any Javascript. Your game must be written completely in PHP. Your PHP program must be the one that decides what happens when the user makes a move (which cells change color), and determines when the user has won.
You need to submit your PHP file(s) to the WebCT dropbox labeled "hw3". If your page references any images, javascript or css files, you must also submit those files, and you must use relative URLs!. We will be viewing your submissions on our machines, not on yours, so if you have something like the image tag shown below we won't see your images and you will lose points!:
<img src="file://c:/eiw/blah.gif">
| WebSys Fall 2006 |