- Yves Brändli
- Nadine Moser
- Robin Meier
In this version of TicTacToe it is not possible to directly input moves, which is why there is an additional class to simulate moves: GameSimulation
To play, follow these steps:
- Create a new GameSimulation object.
- Start the playGame() method.
With these steps a default game is played to completion. If the user wants to use a different preset or wants to create a whole new scenario, they can do this the following way:
- Open the GameSimulation class.
- Uncomment one of the four presets:
- Player One Wins
- Player Two Wins
- Draw
- Error Handling Situations
- Or comment all the presets and add a completely new set of instructions following these rules:
- The set of instructions should start with gameBoard.startGame();. This clears the game board and gets it ready for a new round.
- To make a move use gameBoard.nextMove(x); where x is the field value a player wants to set. Plays are made in alternating order starting with player one.
- A language change can be made at any point of the game with the gameBoard.changeLanguage(); method.