Skip to content

Commit

Permalink
tweaked few weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneren committed Aug 23, 2021
1 parent c7b2b07 commit 0725232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gomoku/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn shape_score(consecutive: u8, open_ends: u8, has_hole: bool, is_on_turn: bool)
5 => (500_000, false),
4 => match open_ends {
2 => (100_000, false),
1 => (5_000, false),
1 => (1_000, false),
_ => (0, false),
},
_ => (0, false),
Expand Down Expand Up @@ -52,7 +52,7 @@ fn shape_score(consecutive: u8, open_ends: u8, has_hole: bool, is_on_turn: bool)
3 => match open_ends {
2 => {
if is_on_turn {
(50_000, false)
(80_000, false)
} else {
(1_000, false)
}
Expand Down

0 comments on commit 0725232

Please sign in to comment.