A Twitter bot to play chess against a computer using polls.
python bot.py
A single run will:
- Get the current board using Redis
- Get the results of the last polls (program exits if polls aren't closed)
- Make the AI play (against Stockfish)
- Check if the game is over
- Post new board and polls
As a base I used airhadoken's gist for creating polls. I also got my Twitter Api Keys using twurl and the Twitter for Mac Consume Key found here.