Inspiration
A wordle game. Yes, as ironic as it sounds this chess game was inspired by a wordle game. I love playing wordle, it is one of those things I look forward to everyday, my daily dose of dopamine. It always frustrated me that we only get one wordle a day even though I never thought of doing anything about it. One day I am doom scrolling through my reddit timeline and I see a wordle game, in *REDDIT !!! * And then it occurs to me, You can just create your favorite games and enjoy them in the middle of your daily scrolls. Just a tap away. So I try to search for an equivalent chess puzzles game (I love chess puzzles) and to my disappointment I don't see any. I thought to myself I should try and make one, being new to the coding world and trying to learn, I might learn a thing or two while writing it.
What it does
A user has to try and solve a forced-mate puzzle in the said number of steps. Each move in the puzzle has to be the correct one to advance to the next move. One can also submit their own puzzle ideas which will be published if it is validated by a moderator. A moderator can publish new puzzles straight to the subreddit as fresh posts.
How I built it
Throughout the building of the game I have relied on the great minds of thousands of people who contribute to open source projects. I have taken advantage of the abstractions that are made possible by great programmers who have written code before me. The game is built using react-chessboard for the UI and chess.js for the chess logic. It is built with react and typescript.
Challenges I ran into
I am new to the programming world so I may have had a little rough experience going through the docs, trying to learn the technologies I am using while building (It works wonders) and I am also writing it using termux on a little old android (Not an issue though, works like a swiss knife). I may have had a little trouble getting resources that explain the reddit development (In areas where the docs are lacking)...There are no other resources other than the docs. (I may consider making a video tutorial when I am better with the devvit world)
Accomplishments that I am proud of
*This is my first ever big project and I have done it in a record time of just a few weeks. *I finally understand (albeit not fully) the devvit ecosystem, the docs are getting easier to understand everyday. *The app is fully working. (I may need to add some features later - a lot of them - that I feel the game needs but didn't have enough time or expertise to fully integrate (That's just for now though, watch this pace- I'll make the best reddit games ever soon) *I am a moderator (haha - ik it's a lonely subreddit with just me but I am a moderator!!!)
What I learned
- Skills take time and pain(metaphorical and real mental pain) to gain. (hopefully I have a lot of it - time , not pain)
- Good things come when you work and wait.
- I enjoy building on reddit. I will be making big games on there pretty soon, not just as a hobby.....A full on career.
- All hail the open-source community. When I am finally well endowed with programming I will have to do my part there.
What's next for chess-mates
- More puzzles - not just endgames...I may add openings and mid games.
- More features - hints, xp, elo, skins, custom pieces etc.
- Refinement of the user experience.
Built With
- chess.js
- devvit
- react
- react-chessboard
- typescript