Game of Eight
Overview
In the sample application, Game of Eight a jumbled magic square with numbers from 1 to 8 is ordered using an HTML client. The program checks for the right order every time a tile is moved. When all the tiles are ordered, a congratulatory message, along with the time taken to solve the game, is displayed.
The components used in this sample are:
- gameofeight.jsp: The client view of the game. It collects information on the sequence of tiles after every move, refers the bean to check against the required order, and reports the result to the client. The JSP includes HTML tags that compose the tiles of the magic square. Image files (*.gif) are used to compose the squares
- Eight.java: Java code that embeds routine methods to check sequence every time a tile is moved and a new square is formed. It matches the sequence to the correct ordered square
- Image files: Gif files used to compose the HTML front end
Instructions for logging into Pramati Server Management Console
Use the following access code to log in to the Console:
User: root
Password: [your password]
Login to the Console
|