Weerwolven van Wakkerdam

We offer the following downloads of this project:

Implementation

In our Java implementation, we structure the information as follows: the most general class is 'player'. Then, there are classes 'werewolf' and 'citizen', who inherit their properties from 'player'. The classes 'seer' and 'innocent girl' are special subclasses of the class 'citizen'. The classes 'werewolf', 'citizen', 'seer' and 'innocent girl' have all subclasses for the different order behaviors.

To run the model, you can use the following: in src/simulatie/model.java you can adjust the number of werewolves, citizens, seers and innocent girls. If you want to have more than 20 players in total, you have to expand the name list. Below the number of players, you can find the function 'initSpelers'. In this function, you can choose the order of the players. Use 'Nul', 'Een', 'Twee' or 'Drie' as prefix for the category to get a zeroth-, first-, second-, or third-order player, respectively. For example, when you choose 'new NulWeerwolf' in this function, the werewolves will be zeroth-order thinking. In src/simulatie/Simulatie.java, you can set the boolean simuleerDuizendKeer to true or false to run one game, or 1000 in sequence. When you run a single game, you can use 'enter' to go to the next round.