A Rock-Paper-Scissors game with Telegram integration & stat tracking
█████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ████████╗
██╔══██╗██╔══██╗╚██╗██╔╝ ██╔══██╗██╔═══██╗╚══██╔══╝
███████║██████╔╝ ╚███╔╝ ██████╔╝██║ ██║ ██║
██╔══██║██╔══██╗ ██╔██╗ ██╔══██╗██║ ██║ ██║
██║ ██║██║ ██║██╔╝ ██╗ ██████╔╝╚██████╔╝ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
ARX Bot is a terminal-based Rock-Paper-Scissors game featuring:
- 🔐 User Authentication - Login system with username/password stored in CSV
- 🎲 Classic RPS Gameplay - Play against the computer with randomized choices
- 📊 Stat Tracking - Your wins and losses are saved and persist between sessions
- 📈 Data Visualization - Matplotlib generates graphs of your performance
- 📲 Telegram Integration - Get your stats sent directly to your Telegram chat
graph LR
A[🔐 Login] --> B[🎮 Play Game]
B --> C{Win/Lose/Draw?}
C -->|Win| D[📈 Update Stats]
C -->|Lose| D
C -->|Draw| B
D --> B
B -->|Quit| E[📊 Generate Graph]
E --> F[📲 Send to Telegram]
- Login - Enter your credentials (stored in
stats.csv) - Play - Choose Rock, Paper, or Scissors
- Track - Your wins/losses are automatically saved
- Exit - Type
quitto end the game - Report - Stats are visualized and sent to Telegram
git clone https://github.com/Arvinvx/Arx_Bot.git
cd Arx_Botpip install pandas matplotlib python-telegram-bot numpy- Create a bot with @BotFather on Telegram
- Get your bot token
- Open
main.pyand replace:
BOT_TOKEN = "YOUR_BOT_TOKEN" # <-- Add your token here
CHAT_ID = YOUR_CHAT_ID # <-- Add your chat IDpython main.pyDouble-click setup.bat for a styled launch experience!
| Technology | Purpose |
|---|---|
| Python 3.14 | Core programming language |
| Pandas | CSV data manipulation & stat tracking |
| NumPy | Random choice generation |
| Matplotlib | Win/Loss graph visualization |
| python-telegram-bot | Telegram Bot API integration |
| asyncio | Async Telegram message sending |
Arx_Bot/
├── main.py # Main game logic
├── stats.csv # User credentials & statistics
├── setup.bat # Windows launcher
├── stats.png # Generated stats graph
└── README.md # You are here!
Username: arvin
Password: ****
Login successful
game loading...
game started
for exit write 4
Enter Rock, Paper, Scissors (or 'quit' to exit) : rock
you win
scissors
Enter Rock, Paper, Scissors (or 'quit' to exit) : quit
Arvin - @Arvinvx
Made with ❤️ and Python