Two text fields, for giving the players names (the left for X, and the right for O), and a submit button
The contents of the text fields should be validated before the page is submitted: each of the text fields should contain the words only, each of them beginning with the upper case letter
After the page is submitted, we are redirected to the page 2
Page 2:
Two labels with the player names
A 3x3 table, which contains the game field
Initially, the fields within the table are intialised with the digits form 1 to 9
After each of the players movements, an appropriate field contents changes from a digit to X or O
When one of the players gives the final movement, the winning XXX or OOO sequence should become highlighted
Use the digit images contained in the zip file here
Two drop down lists:
The first list appears before the game is started, and asks, which of the players starts the game
When the starting player is selected, the first combo disappears, and the second becomes visible. In the second combo box there is a list of valid movements for the player, who has the right to move, e.g.: "Put X on 1", "Put X on 2" and so on
As the player selects his/her movement, the contents of the game field change, according to the selection. The combo box contents also change, and now contain the valid movements for the other player, e.g.: "Put O on 1", "Put O on 3", and so on; notice that in the example above the option "Put O on 2" is ommited, which means, that there is a X or O in the field number 2 already.
Score button, which should appear when one of the players wins; the button redirects to the page nr. 3
Page 3:
Shows the score of the game: name of the players, and the number of the games won for each of them
Contains two buttons: "Play again", and "End the game"; the first one directs to the Page 2, which allows the same players to play the next game, the latter one directs to the Page 1, which allows the new players to play
Technical requirements:
Use the FlowLayout for the appropriate page display
Hints:
RegularExpressionValidator for validating the player names
use <img src="file_name"> for displaying the images