diff options
Diffstat (limited to 'tests/official-runner-matching.rs')
-rw-r--r-- | tests/official-runner-matching.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/official-runner-matching.rs b/tests/official-runner-matching.rs index fcc648f..ffe2468 100644 --- a/tests/official-runner-matching.rs +++ b/tests/official-runner-matching.rs @@ -1,4 +1,5 @@ use steam_powered_wyrm::command::{Action, Command}; +use steam_powered_wyrm::constants::*; use steam_powered_wyrm::game::*; use steam_powered_wyrm::geometry::*; use steam_powered_wyrm::json; @@ -50,10 +51,10 @@ fn simulates_the_same_match() { ); let _ = game_board.simulate([player_move, opponent_move]); if player[1] == "invalid" { - game_board.players[0].moves_score -= 4; + game_board.players[0].moves_score -= INVALID_COMMAND_SCORE_PENALTY; } if opponent[1] == "invalid" { - game_board.players[1].moves_score -= 4; + game_board.players[1].moves_score -= INVALID_COMMAND_SCORE_PENALTY; } } |