pub enum NimAction {
Take(TakeAction),
Place(PlaceAction),
}
Expand description
A Nim move, generally represented, not connected to a position, or a specific game.
For example, remove 3 coins from the first stack without splitting. This does not include information about the current game state, or if a non-empty first
Variants§
Take(TakeAction)
A move which takes coins from a stack, possibly splitting it
Place(PlaceAction)
A move which places coins onto a stack from the player’s pool
For use with Poker-Nim
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NimAction
impl<'de> Deserialize<'de> for NimAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for NimAction
impl Ord for NimAction
Source§impl PartialOrd for NimAction
impl PartialOrd for NimAction
impl Eq for NimAction
impl StructuralPartialEq for NimAction
Auto Trait Implementations§
impl Freeze for NimAction
impl RefUnwindSafe for NimAction
impl Send for NimAction
impl Sync for NimAction
impl Unpin for NimAction
impl UnwindSafe for NimAction
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