EIW Fall 2004 HW3: Perl Game

HW3: Perl Game

Due: Nov 3rd by 11PM
Submissions to WebCT DropBox

You may work with a single partner on this assignment

It is required that you write the code you submit! If you borrow ideas from code you find on the WWW (or anywhere else) you must document this in your code (include a comment that indicates where you got the ideas, etc.).




Assignment Description

This assignment involves the same game as in HW2, but now you need to write the code in Perl. You are not allowed to use any JavaScript in this assignment!

Each time the user clicks on a cell to make a move, a query will be sent to your server (and to your Perl CGI program). You CGI program must then create an HTML document that shows the resulting game board.

Your Perl CGI must recognize when the user has "won" the game and provide a notice that the user has won the game.

Your Perl CGI must support starting the game over (which should result in a random game board).

For details on the game itself, refer to the demo game available online at monte.cs.rpi.edu/~hollingd/eiw/hw2/ and the HW2 assignment.

Demonstration Game

There is a demonstration version of the game running at http://monte.cs.rpi.edu/~hollingd/eiw/hw2/. You should play with this demo version to make sure you understand how the game works. This is a Javascript version now...

How to Submit

You must submit your Perl progrem and any other necessary files (CSS, images, etc) to the WebCT Dropbox set up for HW3 submissions. Feel free to include a text file named README that includes notes about your game, etc.

IMPORTANT! Your code must use relative URLs only, it you send us code that uses absolute URLs we will not be able to test your submissions (and you will get a bad grade).

If you work with a partner, you should only submit once. Make sure you include a file named README in the submission that clearly states the names of both of the team members.