THE JAR FILE IS COMPILED AND MUST BE RUN IN JAVA 15
THE JAR MUST BE STORED AND RUN IN THE SAME DIRECTORY AS THE MAPS, IMAGES, AND SAVES
The deliverables for Milestone 4 include an executable JAR file with source files included, JUnit tests for game scenarios, 4 sample XML maps, 2 sample saved games, a UML class diagram, 5 UML sequence diagrams,and a document that describes the data structures that were used in this implementation, as well as the changes made from the last Milestone, and this READMe. The UML class diagram shows the relationships between the classes, while the sequence diagrams demonstrate important events such as; saving a game, loading a game, how the game checks for an invalid map, an AI Player turn, AI reinforcements, and an AI Player attack.
-
To start game click game menu bar item and click start game
-
To play with the standard Risk map, click "Default Map"
-
To play with a custom map, click "Custom Map" and select the map from the file selector. Our sample custom maps are under "Maps" directory
-
Add all the player names and click okay
-
An AI Player can be set by clicking the computer player check box under the name field
-
A list of countries owned by each player can be seen in the player boxes at the side along with the number of troops in each
-
At the start of each player's turn, highlighted at the top of the screen, the player can add reinforcements to the countries they own, by clicking on the country and then typing how many they choose to place until they have no troops left to place
-
Once all reinforcements have been placed the player is in attack mode
-
To attack, the player chooses a country that they own, and a neighboring one to attack
-
The player can choose to blitz attack which will keep attacking until the attacking country wins, or can no longer attack
-
If blitz attack is not chosen, then the player can choose how many troops to attack with, and the result of the automated dice roll is shown on screen
-
If the attacker wins, they can then choose how many troops to move into their newly acquired country
-
A player can continue to attack, choose to move troops and then end their turn, or pass their turn to the next player
-
To move troops click the move button and then select the country to move troops from, the country to move troops to, and the number of troops they would like to move
-
To end turn at any time click end to pass the turn to the next player
-
When it is an AI Players turn, their turn will be completed automatically, and the turn will pass to the next human player
-
To view past turns, including moves made by an AI player, select the view history menu option
-
At any point a game can be saved by clicking "Save Game" under the "Game" menu
-
Enter the name of the saved game. The game will be saved under the "Saves" directory
-
To load a saved game click "Load Game" under the "Game" menu
-
Select the saved game to load in the file picker. We have provided 2 saved games to test.
- Nothing, the project is done!
- None that are currently known
- Nothing!
- Thank you for a great semester Michael and Dr. Esfandiari!