A troll wack-a-mole game made for AP CSP in Golang.
DO NOT USE THIS CODE AS REFERENCE. I REPEAT: DO NOT.
It works slightly different than regular whack-a-mole:
- There can be multiple moles.
- Holes can be destroyed, which would be marked with a skull.
- Destroyed holes won't be counted in the randomization process.
- These multiple moles can go down at random.
- There are points. You lose if it goes below zero (0).
It's less "troll" and more annoying, although I think it's pretty fun as well.
The fact that dead holes don't get counted towards the randomization process means that the game gets progressively harder as you play it.
When there's only one single hole left, a mole will randomly spawn and disappear. This is very infuriating and "troll," as the player would try and click it, but the mole would've already gone down, thus deducting their points.
This is just written for the PT of my AP CSP class of 2020.
No. It's bad, and my license says no, so you can't use it. Period.
go
version 1.14 or newer and gtk
version 3. Nix users can do nix-shell
.
git clone https://github.com/diamondburned/twam && cd twam
go run .
This project uses 3 GIFs borrowed from other people, which are stored in gifs/
.