switch coordinates to global 'Coord' type

This commit is contained in:
2025-02-26 23:45:58 -05:00
parent a10b762b39
commit 7ec8a66a4e
10 changed files with 63 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
use crate::{
agent::Agent,
logic::{FutureMoveConfig, FutureMoves},
repr::{Board, Piece},
repr::{Board, Coord, Piece},
};
pub struct ComplexAgent {
@@ -27,7 +27,7 @@ impl ComplexAgent {
}
impl Agent for ComplexAgent {
fn next_move(&mut self, board: &Board) -> Option<(usize, usize)> {
fn next_move(&mut self, board: &Board) -> Option<(Coord, Coord)> {
self.future_moves.update_from_board(board);
println!("# of moves stored: {}", self.future_moves.arena_len());