From e762eda31ffa8e722737eba2583154ec038a068f Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 14 May 2018 22:18:52 +0200 Subject: Changed invalid move checking to be a debug assertion --- src/strategy/monte_carlo.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/strategy') diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs index 83627b0..59e86a6 100644 --- a/src/strategy/monte_carlo.rs +++ b/src/strategy/monte_carlo.rs @@ -4,7 +4,6 @@ use engine::geometry::*; use engine::{GameState, GameStatus}; use rand::{thread_rng, Rng}; -use std::process; const MAX_MOVES: u16 = 400; use time::{Duration, PreciseTime}; @@ -56,11 +55,7 @@ fn simulate_to_endstate(command_score: &mut CommandScore, settings: &Gam GameStatus::PlayerWon => command_score.add_victory(), GameStatus::OpponentWon => command_score.add_defeat(), GameStatus::Continue => command_score.add_stalemate(), - GameStatus::Draw => command_score.add_draw(), - GameStatus::InvalidMove => { - println!("Invalid move made while performing simulation"); - process::exit(0); - } + GameStatus::Draw => command_score.add_draw() } } -- cgit v1.2.3