https://github.com/karthikudyawar/russianroulette
This is a Java implementation of the Russian Roulette game, where the player and a virtual dealer take turns to shoot themselves or each other with a revolver containing one live bullet and several blanks. The game continues until one of them loses all their lives.
https://github.com/karthikudyawar/russianroulette
game game-development java russian-roulette
Last synced: 3 months ago
JSON representation
This is a Java implementation of the Russian Roulette game, where the player and a virtual dealer take turns to shoot themselves or each other with a revolver containing one live bullet and several blanks. The game continues until one of them loses all their lives.
- Host: GitHub
- URL: https://github.com/karthikudyawar/russianroulette
- Owner: KarthikUdyawar
- License: apache-2.0
- Created: 2024-03-01T07:22:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-01T21:57:13.000Z (over 1 year ago)
- Last Synced: 2025-01-29T14:45:54.771Z (8 months ago)
- Topics: game, game-development, java, russian-roulette
- Language: Java
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Russian Roulette Game

This is a Java implementation of the Russian Roulette game, where the player and a virtual dealer take turns to shoot themselves or each other with a revolver containing one live bullet and several blanks. The game continues until one of them loses all their lives.
## Features
- Player can shoot themselves or the dealer.
- Dealer's moves are randomly generated.
- God mode allows the player to see the contents of the revolver chamber.
- Score multiplier increases with each round won.
- Option to double score after winning a round.## How to Play
- Enter your first name and your signature to participate in the game.
- Choose 's' to shoot yourself or 'd' to shoot the dealer.
- Survive longer than the dealer to win the game.## Usage
- Clone the repository.
```bash
git clone https://github.com/KarthikUdyawar/RussianRoulette.git
```- Navigate to the src directory.
```bash
cd RussianRoulette/src
```- Compile the Java file:
```bash
javac App.java
```- Run the compiled file:
```bash
java App
```## Contributing
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request.
## License
This project is licensed under the Apache License - see the LICENSE file for details.