играть (“Play”)
Russian Roulette is a terminal-based game of chance, guts, and glory. Face off against bots in a dangerous game where only one can survive. Outlast your opponents and earn virtual money with every pull of the trigger—but beware, one mistake ends it all.
Warning: This game is for virtual thrills only. Do not try this in real life.
- Play against up to 5 bots, each with unique names.
- Randomized bullet chamber each round.
- Earn virtual money for surviving rounds and outlasting bots.
- ASCII banners for an immersive experience.
- GCC (for compiling the C code)
- Python 3 (for ASCII banners)
- Python package:
pyfiglet
-
Clone the repository:
git clone https://github.com/Jayesh-Dev21/RussianRoulette.git cd RussianRoulette -
Install Python dependencies:
pip install -r requirements.txt
-
Build the game:
make
This will generate an executable called
app.
Run the game from the terminal:
./appYou’ll be prompted to enter your name and presented with a menu:
0. Help– Shows instructions and rules.1. Play– Start a game against bots.2. Start New Game– Reset progress and start over.3. Exit– Quit the game.
- Each round, the revolver’s chamber is loaded with a random number of bullets (1-6).
- Players and bots take turns pulling the trigger.
- Survive to earn $1000 each time; eliminate all bots to win a bonus!
- ASCII banners appear for various events (requires Python and pyfiglet).
To remove the compiled binary, run:
make cleanThis project is licensed under the MIT License.
