Struct pgn4::Variant [−][src]
Representation of different variants of 4 player chess
This has been made to closely resemble the setup for starting games on Chess.com.
Fields
red_teammate: Color
initial_board: Board
king_of_the_hill: bool
antichess: bool
promote_to: Vec<char>
dead_wall: bool
en_passant: bool
capture_the_king: bool
pawn_promotion_rank: usize
ncheck: usize
chess960: u16
ffa_dead_king_walking: bool
ffa_takeover: bool
ffa_opp_x: u16
ffa_points_for_mate: u16
ffa_play_for_mate: bool
Implementations
impl Variant
[src]
pub fn team_default() -> Self
[src]
The default variant for the team gamemode.
pub fn ffa_default() -> Self
[src]
The default for the ffa and solo gamemodes
pub fn fairy(&self) -> bool
[src]
Returns true if there are any non-standard pieces in play (or could promote to such a piece)
pub fn pawn_base_rank(&self) -> usize
[src]
Distance of the pans base rank from the edge of the board.
Trait Implementations
impl Clone for Variant
[src]
impl Debug for Variant
[src]
impl Display for Variant
[src]
impl Eq for Variant
[src]
impl Hash for Variant
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Variant> for Variant
[src]
impl StructuralEq for Variant
[src]
impl StructuralPartialEq for Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,