Trait zero_sum::Ply [] [src]

pub trait Ply: Clone + Debug + Display + Hash + PartialEq { }

This trait marks a ply.

Implementors should implement Hash manually, writing only a single u64 to the hasher.

Example

For tic-tac-toe, we might have:

enum Mark { X, O }

struct Move {
    mark: Mark,
    coords: (usize, usize),
}

impl Ply for Move { }

Implementors