Skip to content

tournaments of different game theory strategies

Notifications You must be signed in to change notification settings

Sanegv/game_theory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game_theory

tournaments of different game theory strategies


Files

  • strategies

These files (.h and .c) contain a few different strategies. In order to be used with function pointers, all have the same prototype :

int strategy(Score** values, int lastOpponentChoice, char player);

the files also contain the struct Score, that is simply a collection of two ints, as well as a function that returns the sum of the integers in a score struct, and one that prints the values of these integers.

  • game

These files contain the necessary functions to simplify the creation of a game, or several games in a row. It can also print and free the grids.

In term, I might decide to create a struct that stores all the data used during a game (the grid of scores, the function pointers for strategies, the last results, etc).

  • main

This file contains a few methods to show how the functions interact.


TODO

  • implement threads

About

tournaments of different game theory strategies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages