This is a simple game written with the Scala programming language and Akka Actors.
git clone https://github.com/Ehevi/Pat-the-Cat Pat-the-Cat
cd Pat-the-Cat
sbt run
sbt test
Once the app starts, you'll see five kitties of different colors.
Click on the Start!
button to start the game. From this moment the timer counts down from 60 seconds.
Your every next click on any of the kitties will add up to your score depending on the current state of the clicked kitty:
State | Active frame(s) | Score |
---|---|---|
running | + 1 | |
eye gazing | + 10 | |
scratching | - 1 | |
yawning | + 10 | |
sleeping | - 2 |
The more points you collect from the kitty, the faster it changes its state. The speed of each kitty is independent from another ones, so your kitties will most likely end up having diffferent speed.
The game ends when the timer reaches zero or when you click on the Stop!
button.