feat: python bindings

This commit is contained in:
Henri Bourcereau 2026-01-18 18:41:08 +01:00
parent 4920ab96f8
commit 012ccf8b42
12 changed files with 402 additions and 14 deletions

View file

@ -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,