20 CTF - Catch the fish

20 : CTF - Catch the fish

Design renderSelect Project123456789ONSW2
  • Author: Carin Schreiner
  • Description: Catch the fish is a whac-a-mole game.
  • GitHub repository
  • Clock: 0 Hz

How it works

The project consists of

  • a fibonacci lfsr of degree 6.
  • a simple timer: the timer consists of two flip flops. It slows down the game and further amplifies the pseudo-randomness
  • a button press detection for each button
  • a simple reward detection
  • Output state Handlers
  • Output Selection: The last bit of the lsfr is used as the decision whether to give an output or not. The second and third to last bits are used to determine on which pin the output should be given. If both bits are zero, no output is given.

How to test

To play the game, press the start button and make sure the clock is set to a frequency of one or two. The higher the frequency the more difficult the game gets. To score, you need to press the button while the respectivly numbered feedback output is one. You then get a reward feedback

IO

#InputOutput
0clockfeedback 1
1button 1feedback 2
2button 2feedback 3
3button 3reward feedback
4
5
6
7