Readme file for SYSC3110 Fall 2020 project. The RISK board game has been an exciting game to play with family and friends that involves strategy and bit of luck. This project is designed to replicate the game using Java's Graphical User Interface by implementing Object Oriented style programming. The objective of the game is to conquer as many countries and other player's occupied countries by eliminating them. The last player remaining is the victor.
- Model for the MVC pattern of Risk game
- View and Controller of MVC pattern
- Code for the text-based Risk game
- UML diagrams, sequence diagrams
- GUI based version of the game
- Bonus troop placement and reinforce troop placement
- AI player
- JUnit test
- Save/load games
- Load custom maps
- How to load map
- When starting the game, choose the option to select a custom map.
- Select a JSON file that represents the map (example maps can be found under example_maps directory).
- Click ok and a map will be generated with the custom JSON.
- How to load map
- Download the .JAR file
- Navigate to where the .JAR file was downloaded
- Open up command prompt where the .JAR file is
- Run the command java -jar SYSC3110-Risk.jar
- GUI will sometimes resize the text area and button panel when a country button is clicked
- Valid custom map checker might have some edge cases that were missed
JUnit4
The text area on the right hand side will say whose turn it is and will report battle results
- Click bonus troops button
- Click a country to add troops
- Choose from the dropdown the number of troop to add
- Click attack button
- Click one of your owned countries
- Select from the dropdown how many troops to attack with
- Choose an adjacent country to attack
- Click the reinforce button
- Choose a country to reinforce from
- Choose from the dropdown how many troops to reinforce with
- Choose a highlighted country to reinforce
Jason Gao, Harjap Gill, Shashaank Srivastava, Albara'a Salem