Mate in 2 -- Vol. 3
About
- 25 Mate-in-2 puzzles.
- Mouse required.
Controls
- left mouse button : select / deselect pieces, squares or buttons.
- right mouse button: show hint-square during puzzle. hide modal after puzzle.
Upgrades from previous volumes
- mouse makes for much better user experience.
- progress saved. start at last puzzle completed.
- white/black to move instead of just one color.
- improved wrong-move animation.
- expanded color palette.
- music (with easy on/off option at end of each puzzle).
Known bugs
- if cart is left idle during a puzzle for a long time (like hours and hours), the wrong-move sprite animation gets messed up and instead of jiggling, the piece just drifts off to the side until returning to it's square. This is because
t()
is used withcos()
to create the shake effect. Whent()
gets too big, it causes problems. It is within my tolerance level and so I don't mind. It never happens unless I forget that it is running all afternoon. Because this cart saves progress, it is no big deal to restart the cart. Or even play as-is since gameplay is not affected. In short, its a non-issue.
Hello! I am interested in making a puzzle game using Lichess API to provide an infinite number of puzzles.
@toadofsky
can you be more specific? there are already millions of puzzles out there... most of this carts' puzzles are from the Polgar book Chess. One thing that can definitely be done is add more puzzles to each mate-in-2 cart... there is plenty of room if the code is optimized.
To write these puzzle carts I've made little bash and javascript scripts so I can plug in the info and it prints the code so that it isn't so tedious. What would be amazing is if you could link the lichess API to something similar that would automatically spit out hundreds of puzzles, formatted for pico 8. It could do it in one second and then just copy/paste into the base code and then you'd have all those puzzles in PICO.
I hope you do something like this. I'm currently busy trying to write my first full chess engine and am struggling and it takes time. But I want to revisit the puzzles again and re-write them all with better code and movegen and other features now that I know more.
[Please log in to post a comment]