summaryrefslogtreecommitdiff
path: root/src/strategy.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-05-26 18:23:05 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-05-26 18:23:05 +0200
commit9450ab5a6bf6b2aa57c1ebbd0be0a88c1110e140 (patch)
treecd2eedb95ee961e0be3fb15d318b50eecbe18edd /src/strategy.rs
parentd37be51f196eebdb8df57c87e8ab5bb684e1dcd9 (diff)
Setting up makefile for submission
Diffstat (limited to 'src/strategy.rs')
-rw-r--r--src/strategy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strategy.rs b/src/strategy.rs
index 8e004cf..dd5bece 100644
--- a/src/strategy.rs
+++ b/src/strategy.rs
@@ -185,8 +185,8 @@ fn best_player_move(node: &Node) -> Command {
fn score(state: &GameBoard) -> Score {
Score {
val: match state.outcome {
- SimulationOutcome::PlayerWon(0) => 10000.,
- SimulationOutcome::PlayerWon(1) => -10000.,
+ SimulationOutcome::PlayerWon(0) => 500.,
+ SimulationOutcome::PlayerWon(1) => -500.,
_ => (state.players[0].score() - state.players[1].score()) as f32,
}
}