A typing game where the player has to type the word and press enter before the word reaches the red rectangle area at the bottom of the screen.
The aim of the assignment was to explore concurrency and the synchronization and thread safety issues surrounding it.
- Locate and move to the
maketo compile the source files.
make run-defaultto run the code with the
example_dict.txtword dictionary file.
make run FILE=<file_path>to use a custom dictionary file.
make run-no-fileto use the built-in word dictionary.
If you wish to change the total selection of words, or the number of words on the screen,
go into the
makefile and change:
CONCURRENT_WORDS = 4 TOTAL_WORDS = 25
When you have the game running. Press the
Start button to start the game. You can push the
Pause button to pause the game. Push the
Reset button to reset the game to its start state.
The words will scroll down the screen. You need to type out the words and press
You will get points depending on the words length.
After getting 25 words right, you will win the game. If you miss 10 words, you will lose.