% Listing 4: init.html <html> <head> <title>Initialising Nim</title> </head> <body background = "chalk.jpg"> <H1 align=center>Initialising Nim</H1> <P>Nim is a game for two people, but here you will be playing against a machine!</P> <P>In this version of Nim there are always 5 rows of sticks, but you get to choose how many sticks are initially in each row. </P> <P>The players take turns removing some of the sticks (up to all) in a row. The winner is the player who takes the last stick.</P> <FORM METHOD="POST" ACTION="http://www.cs.mu.oz.au/cgi-bin/init_nim"> <P>Please enter your name: <INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="20" VALUE=""></P> <P>Enter the number of sticks in each row (there is a maximum of 15 sticks allowed per row). Some default values are supplied:<br> Row 0: <INPUT TYPE="text" NAME="r0" SIZE="5" MAXLENGTH="5" VALUE="1"><br> Row 1: <INPUT TYPE="text" NAME="r1" SIZE="5" MAXLENGTH="5" VALUE="3"><br> Row 2: <INPUT TYPE="text" NAME="r2" SIZE="5" MAXLENGTH="5" VALUE="5"><br> Row 3: <INPUT TYPE="text" NAME="r3" SIZE="5" MAXLENGTH="5" VALUE="7"><br> Row 4: <INPUT TYPE="text" NAME="r4" SIZE="5" MAXLENGTH="5" VALUE="9"></P> <P><INPUT TYPE="submit" VALUE="Start Nim"> <INPUT TYPE="reset" VALUE="Reset"></P> </FORM> <hr> <address> Last updated: June, 1996<br> Author: <a href="http://www.cs.mu.oz.au/~ad">Andrew Davison</a><br> Email: <a href="mailto:ad@cs.mu.oz.au">ad@cs.mu.oz.au</a><br> </address> </body> </html>