From 886d7f75bca7078799074f0b4e7b80c6f8081f5f Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 29 Jun 2019 10:52:18 +0200 Subject: Put score allocation behind constants --- tests/official-runner-matching.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/official-runner-matching.rs') 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; } } -- cgit v1.2.3