This is a pet project, implementing the popular game Exploding Kittens in OCaml.
This project uses Core and Async heavily and is created to practice the
Rpc library.
- Ensure you have opam and it is initialised.
- Clone this repository with
git cloneandcdinto it. - Install all dependencies with
opam install --deps-only ..- Alternatively,
opam installall dependencies manually as stated in thedependssection ofexploding_kittens.opam, includingocamlanddune.
- Alternatively,
- Run
dune buildto build the project to check that it is successful.
This command represents the endpoint for a player and interacts with the game by providing input.
- Have a process run
dune exec -- ./bin/player.exe -port YOUR_PORT_HERE -name YOUR_NAME_HERE, taking note of the host and port that it is running on. A good choice of a port is8000, 8001, etc. - Repeat the above step as many times for other players.
This command starts the game and is the brain of the game.
- Start the server by running a process with
dune exec -- ./bin/server.exe -player HOST:PORT_1 -player HOST:PORT_2, replacing the host and port accordingly to the players.
Watch the official tutorial video on YouTube for the basics of the game.
Alternatively, read the official PDF explaining the rules.
Note: Only Nope and Quint is currently unimplemented from the above PDF.