switched return type of is_game_over from bool to GameEnd
This commit is contained in:
@@ -6,13 +6,14 @@ pub mod movetype;
|
||||
pub mod gameend;
|
||||
|
||||
use chessmove::ChessMove;
|
||||
use gameend::GameEnd;
|
||||
|
||||
pub fn get_available_moves(fen: &str) -> Vec<ChessMove> {
|
||||
println!("get_available_moves answered");
|
||||
return vec![];
|
||||
}
|
||||
|
||||
pub fn is_game_over(fen: &str) -> bool {
|
||||
pub fn is_game_over(fen: &str) -> Option<GameEnd> {
|
||||
println!("is_game_over answered");
|
||||
return false;
|
||||
return None;
|
||||
}
|
||||
Reference in New Issue
Block a user