Commit dd9bbf10 authored by Tom Page's avatar Tom Page

Fix error in winning score implementation.

parent b2c46e06
......@@ -12,7 +12,7 @@ The project is compatible with Java 11 and Maven 3.6.
To test if the project is correctly set up then the tests in `GameTest` can be run,
and should result in output similar to:
```
Result: MyGreatPlayer 0, RandomPlayer 978
Result: MyGreatPlayer 0, RandomPlayer 1000
The winner was RandomPlayer
```
......
......@@ -32,9 +32,9 @@ public class GameRunner
/** The total 'chance' on the dice. */
public static final int DICE_TOTAL_CHANCE = DICE.values().stream().mapToInt(x -> x).sum();
/** The score needed to win the game. */
public static final int WIN_SCORE = 200;
public static final int WIN_SCORE = 100;
/** The maximum number of turns before the game is declared a tie. */
public static final int MAX_GAME_LENGTH = 100;
public static final int MAX_GAME_LENGTH = 200;
/** The number of games in a match. */
public static final int MATCH_LENGTH = 1000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment