Use PlayerIndex instead of String

This commit is contained in:
2022-06-14 22:51:11 +02:00
parent 3fbac02de3
commit 9b025fb53a
6 changed files with 352 additions and 254 deletions

View File

@@ -1,5 +1,14 @@
use crate::{Gaussian, BETA, GAMMA, N_INF};
#[derive(Copy, Clone, Debug, Default, PartialEq, PartialOrd, Eq, Ord, Hash)]
pub struct PlayerIndex(usize);
impl PlayerIndex {
pub fn new(index: usize) -> Self {
Self(index)
}
}
#[derive(Clone, Copy, Debug)]
pub struct Player {
pub prior: Gaussian,