feat: python bindings
This commit is contained in:
parent
4920ab96f8
commit
012ccf8b42
12 changed files with 402 additions and 14 deletions
|
|
@ -1,9 +1,11 @@
|
|||
use pyo3::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
||||
// This just makes it easier to dissern between a player id and any ol' u64
|
||||
pub type PlayerId = u64;
|
||||
|
||||
#[pyclass(eq, eq_int)]
|
||||
#[derive(Copy, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum Color {
|
||||
White,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue