# ncpig 🐷 Algorithms for (multiplayer) **n**on-**c**ooperative **p**erfect **i**nformation **g**ames, written in rust ⚡️. The core crate is in [`ncpig`](./ncpig). Numerous example games used for testing can be found in [`ncpig-testing`](./ncpig-testing). ## Example ```rust use ncpig::prelude::*; use ncpig_testing::rolit::*; fn main() -> anyhow::Result<()> { let game = Rolit::new([RolitPlayer::Green, RolitPlayer::Blue]); let state = RolitState::default(); let bot = Random::new(); let competition = Competition::new(&game, [&bot, &bot], true); let finalstate = competition.play(state)?; for player in game.players() { println!("{player}: {}", game.score(player, &finalstate)?); } Ok(()) } ``` ## Developers See the [wiki](https://man.sr.ht/~ryguy/ncpig/#developer-docs) for more info that could be useful to developers.