pub struct GameConfig {
pub win_length: u8,
pub placement_radius: i32,
pub max_moves: u32,
}Expand description
Configuration parameters for a HeXO game.
Fields§
§win_length: u8Number of consecutive stones needed to win.
placement_radius: i32Hex-distance radius within which moves are legal.
max_moves: u32Maximum total stone placements before the game is a draw.
Implementations§
Source§impl GameConfig
impl GameConfig
Sourcepub const FULL_HEXO: GameConfig
pub const FULL_HEXO: GameConfig
Standard HeXO configuration: 6-in-a-row, radius 8, 200 total moves.
Trait Implementations§
Source§impl Clone for GameConfig
impl Clone for GameConfig
Source§fn clone(&self) -> GameConfig
fn clone(&self) -> GameConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameConfig
impl Debug for GameConfig
impl Copy for GameConfig
Auto Trait Implementations§
impl Freeze for GameConfig
impl RefUnwindSafe for GameConfig
impl Send for GameConfig
impl Sync for GameConfig
impl Unpin for GameConfig
impl UnsafeUnpin for GameConfig
impl UnwindSafe for GameConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more