Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.1 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.1 KB

Onboarding's Tic-Tac-Toe Telegram Bot

Hi! This is a Telegram bot that let's you play tic-tac-toe with your friends!

Getting started

First, make sure you have python3 and pip installed in your machine. Then, follow this steps:

Activate virtualenv

We are going to use virtualenvs so that none of you have to install the packages we are going to use in your machine's base environment. If you don't have virtualenv installed, just use:

pip install virtualenv

With virtualenv at your disposal, run

source venv/bin/activate

If you're in Linux or

venv\Scripts\activate

If you're in Windows.

Install dependencies

To install the dependencies needed, simple run

pip install -f requirements.txt

Running the bot

To run it, simple use

python network.py

or

python game.py

Depending on which team you are working: "network.py" is for team 1 and "game.py" is for team 2.

You can also use nodemon to run the bots. Simply use:

nodemon [bot_name].py