switched return type of is_game_over from bool to GameEnd

This commit is contained in:
Varga Dávid Lajos
2025-11-15 20:37:06 +01:00
parent ff38c5c475
commit 30448b5f3d

View File

@@ -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;
}