Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aadi123 committed Oct 10, 2023
1 parent 22ca865 commit 7cbb9d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub fn get_next_move(fen: &str) -> JsValue {
};
let movegen = MoveGen::new_legal(&board);

// return first random move
for chess_move in movegen {
// This move does not capture anything
return JsValue::from_str(&chess_move.to_string());
Expand Down

0 comments on commit 7cbb9d7

Please sign in to comment.