No SQL knowledge necessary. It's actually mostly *PL/pgSQL , heavily unoptimized and undocumented. What could go wrong?
Install the game by running ./play.sh. You will need Docker running on your machine.
- Start a new game by running
select start()Optionally,select start(2)to start at a higher level. - Your
INFO: 🚀1 💥2 🔼↘bar is useful This says Level 1, 2 shots left for this duck, and the direction that the duck is flying is bottom right. - Your crosshair is a block
█It starts in the center of a 16x16 grid, and you move it relative to its current position when you shoot. - Your target is the duck 🦆 It starts at the bottom of the grid, and randomly flies around the grid.
- Timing is crucial
The duck moves even if the screen doesn't. The longer you idle, the more the duck's flown around.
select shoot(dx,dy)where the duck is flying to, andselect refresh()if you feel you waited too long. - Your score
🫥 🦆 🦆 🦆 🦆 🫥is at the bottom If you hit the duck, you score a 🦆. Run out of shots, the duck escapes 🫥. - Stop the game by running
select stop()and exit by runningexitWhen you come back, the old game does not resume. - Good luck, try to get all the 10 ducks in a game!
- Shoot by running
select shoot(dx,dy)e.g.select shoot(-1,2)will shoot at a new position that is 1 left and 2 down from the current crosshair location. - If you idle, run
select refresh()This refreshes the view without losing a shot.
- Docker
- Basic Math skills
- Zen
