mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-06-29 08:55:53 +08:00
8144b16b9d
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
16 lines
363 B
Rust
16 lines
363 B
Rust
use crate::board::Board;
|
|
use crate::types::{Color, Position};
|
|
|
|
/// AI 引擎统一接口
|
|
pub trait AiEngine: Send + Sync {
|
|
/// 返回 AI 的最佳落子位置, 无位置返回 None
|
|
fn best_move(&self, board: &Board, color: Color) -> Option<Position>;
|
|
}
|
|
|
|
pub mod evaluate;
|
|
pub mod killer;
|
|
pub mod opening;
|
|
pub mod search;
|
|
pub mod trans_table;
|
|
pub mod vcf;
|