What is my number?
Ciarán Lier and Michiel van der Ree

Introduction   Methods   Results   Code  Conclusion

Code

We programmed our game in C++. Compilation yields an executable called 'wmn'.

An example call to our program: ./wmn 1 -m -v

This results in one game being played with epistemagic and verbosity. Shown below is the verbose output of a turn in which "epistemagic happens."


The number of games can be left unspecified. In that case, the amount of games that will be played is equal to the number of states in the model (in this case, 7560). Results will be written to a csv-file in the folder 'results'.

All command line options are listed in the table below.

Command Line Option Effect
-m
--magic
Use Epistemagic
-v
--verbose
Print out a lot of information
-k
--kooi
Use Kooi's Choice
-i
--infinite
Use infinite times epistemagic
-f
--full
Use the full model to calculate information gain in Kooi's Choice instead of just the worlds considered possible in the true state
-c
--count
Writes the full and true information gain from each question to two files ending in full and true

Through the link below you can download the source code itself. A makefile is included for easy building and compiling.

Source Code

Since we are just humble AI-students with no extensive knowledge of portability, we don't know whether the makefiles will work on systems other than Linux. If you encounter problems with compiling, please send us an e-mail at wmn.mas.1213[at]gmail.com.