No description
Find a file
Francesco Mecca e5bf300f14 gitignore
2019-12-15 21:15:12 +01:00
hosaka check if it works 2019-08-20 16:39:33 +02:00
metro_holografix ono_sendai - wip 2019-08-19 00:12:42 +02:00
ono_sendai about and intro 2019-08-25 19:10:28 +02:00
.gitignore gitignore 2019-12-15 21:15:12 +01:00
.merlin restructured + tests 2019-08-15 10:24:53 +02:00
LICENSE Update LICENSE 2019-08-24 11:47:06 +02:00
makefile restructured + tests 2019-08-15 10:24:53 +02:00
README.md readme 2019-08-25 12:13:41 +02:00

Octopus Carnival

Octpus Carnival is an environment for playing the Machiavelli card game inside the terminal. It features a solver in order to play against the computer.

Getting Started

Prerequisites

The Machiavelli solver is written in Ocaml:

opam install corebuild dune yojson core

The TUI is written in python:

pip3 install --user colorama picotui

The game

In order to play the game first build the solver:

cd octopus_carnival
make

Then run the executable

./ono_sendai/start

Example

Click to play the video.

Example

Contributing

The folder structure follows a non standard layout for personal reasons.

.
├── hosaka
│   ├── cards.ml
│   ├── dune
│   ├── dune-project
│   ├── hashset.ml
│   ├── main.ml
│   ├── printer.ml
│   ├── table.ml
│   ├── tcards.ml
│   └── tests.ml
├── makefile
├── metro_holografix
│   ├── cardtypes.py
│   └── scrapes/
├── ono_sendai
│   ├── animation/
│   ├── start
│   ├── state.py
│   ├── symbols.py
│   └── widgets.py
  • hosaka contains the code related to the solver
  • metro_holografix contains the python definitions for the cards and some prototypes
  • ono_sendai contains all the python code related to the game TUI

Authors

  • Francesco Mecca - blog

License

This project is licensed under the GPLv3 License - see the LICENSE.md file for details

Acknowledgments

Thanks to my friend Daniele that helped me to write the algorithm for the solver.