This last summer I discovered the fantastic Twitter account EmojiTetra, a bot which lets other Twitter users play a Tetris game, voting on each move. (It has developed a fantastic community of followers, I love it.) This bot takes the same premise (playing a puzzle game collaboratively) with another easy to understand game: 2048.
What it does
The bot tweets every ten minutes the current state of the game. Twitter users can answer the tweet with a direction (up, down, left, right, or the arrow emojis for these directions) to move the emojis in the grid. The bot chooses one of the answers at random. The objective is to reach the last emoji in the pattern (as it's hard to format a grid with full numbers on Twitter!).
How I built it
I used node.js (my first time using it) and the twit library to access the Twitter API.
Challenges I ran into
I wanted to use polls, which are more intuitive and let users engage more easily with the game, but the Twitter API doesn't provide support for polls yet, so I had to devise a new way of interacting with the bot to be able to play.
Accomplishments that I'm proud of
Developing my first solo project in a hackathon, and learning a new technology I hadn't used ever before.
What I learned
I learned the basics of node.js and how to use an API.
What's next for Emoji2048
- Deploying it somewhere where it can stay runnning 24/7
- Provide QoL updates to the game (better threading, mainly)
- Change the system from responses to poll options, whenever Twitter adds API support for them