- Java Installation:
- Ensure that you have Java installed on your system. You can check this by running the following command in your command prompt or terminal:
If Java is not installed, you can download it from Oracle's official website.
java --version
- Ensure that you have Java installed on your system. You can check this by running the following command in your command prompt or terminal:
Compile the Code:
- Open a terminal or command prompt and navigate to the project directory.
- Compile the Java code using the following command:
javac *.java
Run the Game:
- After compilation, run the game with the following command:
java Main
- Follow the on-screen instructions to play the game.
- Download the project and open the project in your choosen IDE
- Go to /src/Main and run the code
Scotland Yard-Sim is a Java-based simulation of the classic board game "Scotland Yard." The game involves a strategic chase between the elusive Mister X and the detectives. The players take turns making moves, and the game continues until Mister X is captured or manages to escape.
- Go try to make your own bot. There are different tactical approaches that you can try. To do so, you have to edit the getMove() in MisterXMoveStrategy.java/DetectiveMoveStrategy.java in the src. (If you change any state of the gameBoard during the getMove() - the programm won't run - look at the Error printing in your console). Look at the Documentation for more information about the board and it's behavior.
Happy gaming!