Skip to content

Commit

Permalink
change human / bot position for more natural play
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Jul 11, 2020
1 parent fd33c01 commit 752d33c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogiban.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ pub fn init() -> Result<(), String> {
}
};

let human_turn = game.get_turn();
let human_turn = !game.get_turn();
if human_turn {
human_play(&mut game); //for çnow, every turn is human
human_play(&mut game);
} else {
let mv = shogai::ai::greedy(&game);
game = game.play_move(&mv);
Expand Down

0 comments on commit 752d33c

Please sign in to comment.