Twitter Plays Snake is a Twitter bot written with Twitter4J that allows users to play a collaborative game of Snake using likes and retweets.
Special snake modes change up the gameplay and have a 25% chance of activating after each move.
😈🟪🟪🟣
Devil snake moves in the opposite direction of the chosen move.🤢🟩🟩🟢
Glutted snake dies when eating an apple.😡🟥🟥🔴
Charged snake continues to move until reaching an obstacle.
Special fruit change up the gameplay and can spawn after earning a point.
🍏🍏
Green apples spawn in doubles, teleporting the snake to its pair when collected.
Games are loaded and saved between program runs if SAVEPATH
is specified in Bot.java
.
Setting DEBUG
to true
in Bot.java
allows you to play the game solo with console commands for debugging purposes.
Twitter Plays Snake can be found here.
Replace the constants in Bot.java
with your bot's username, save directory, and respective keys/tokens from the Twitter Developer Portal. Ensure your IDE has Maven support (ex: IntelliJ IDEA), and execute mvn clean install
in the project directory.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.