I did this project for learning purposes as a capstone project from Microverse after completing the Ruby curriculum. Ut us a Telegram bot for playing the Tic-Tac-Toe game.
Tic-tac-toe Game is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner. It is a solved game with a forced draw assuming best play from both players.
In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
The following example game is won by the first player, X:
Game of Tic-tac-toe, won by X Players soon discover that the best play from both parties leads to a draw. Hence, tic-tac-toe is most often played by young children, who often have not yet discovered the optimal strategy.
You have to use Telegram in order to play with this bot.
- Ruby
- this Ruby wrapper
| View on desktop version | View on mobile version |
|---|---|
![]() |
![]() |
- You can connect to Telegram and find
@ilie_smart_botand try to play with him :) or you may click here
- Install Ruby
- Create a Bot using Telegram's BotFather
- Clone this repository
git@github.com:iliebabcenco/my-telegram-bot.git - Open in any editor file bin/main.rb and replace token value in line 7 with your token from BotFather
- Write
cd directoryof the project in the terminal - Run bundle exec ruby bin/main.rb
- Find your bot on telegram Telegram
- Now you have your own bot which plays Tic-Tac-Toe game!
- Open terminal and switch to project directory
- Run
bundle exec rspec specto check the passing tests
This application is deployed on Heroku so you can play with bot every time.
👤 Ilie Babcenco
- GitHub: @iliebabcenco
- LinkedIn: @iliebabcenco
- Twitter: @iliebabcenco
Contributions, issues, and feature requests are welcome!
If you want to contribute, you can clone this project or fork it.
If you found an issue, feel free to check the issues page.
Give a ⭐️ if you like this project!

