trictrac/store/src/game_rules_points.rs

17 lines
295 B
Rust
Raw Normal View History

2024-05-20 19:04:46 +02:00
use crate::board::Board;
use crate::dice::Dice;
#[derive(std::cmp::PartialEq, Debug)]
pub enum PointsRule {
FilledQuarter,
}
pub trait PointsRules {
fn board(&self) -> &Board;
fn dice(&self) -> &Dice;
fn get_points(&self) -> Vec<(u8, PointsRule)> {
Vec::new()
}
}