The programming language used for this task is JAVA. The version used for this project is Java 20.
The code is structured into 1 file: red_blue_nim.java: This is the main program that should be run from the command line with arguments for the game.
To run the code, follow the steps below: -- Open the command line or terminal and navigate to the directory containing the red_blue_nim..java file. -- Run the command:
javac red_blue_nim.java
#This will compile the code
java red_blue_nim [num_red] [num_blue] [first_player] [depth]
where: num_red is the number of red marbles in the game. num_blue is the number of blue marbles in the game. first_player is the player that starts the game. This can be either 'computer' or 'human'. depth is an optional argument that determines the depth of the minmax search algorithm. If not specified, the algorithm will use its default value.
Follow the prompts to play the game.
This code has not been tested on ACS Omega.