A prisonner dilema implementation
Go to file
2022-11-15 10:56:45 +01:00
spec init 2022-11-04 12:19:02 +01:00
src add climate change constest 2022-11-05 12:13:22 +01:00
.editorconfig init 2022-11-04 12:19:02 +01:00
.gitignore init 2022-11-04 12:19:02 +01:00
LICENSE Fix license 2022-11-15 10:56:45 +01:00
README.md Add some doc 2022-11-10 17:20:49 +01:00
shard.yml init 2022-11-04 12:19:02 +01:00


Game of Game is a framework to develop "AI" (strategies) for simple games such as the prisonner game etc.


Install crystal >=1.6.


crystal build --release src/game/<any_game>.cr


You can develop 3 types of systems:

  • Game in src/game. Usually a loop to test several combinations or randomness. Benchmarking, contests, etc.
  • Game rules in src/rules_set. They handle what happen each time a player place a bet and the consequences of the bets of every player.
  • Game strategies in src/ai. Most of the time you want to develop your AI (strategies) along with one rule_set but they might be compatible with others, depending on the expected inputs. They behave and have access to the history of the game to take futur bets.


  1. Fork it (https://git.sceptique.eu/Sceptique/game_of_game/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request