GitHub - StreetTT/BuckshotRoulette: A recreation of the popular game Buckshot Roulette with 2 player games and different bots implemented.

A recreation of the popular game Buckshot Roulette, with 2 player games and different bots implemented. - StreetTT/BuckshotRoulette Toggle navigation Sign in Search or jump to…

Search code, repositories, users, issues, pull requests…

Search syntax tips # Provide feedback

Cancel Submit feedback # Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign in Sign up Reseting focus Search syntax tips

Use saved searches to filter your results more quickly

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. mainBranchesTagsGo to fileCode

Folders and files

NameNameLast commit messageLast commit date

Latest commit

History 24 Commits |

| .vscode | .vscode | | | | br | br | | | | .gitattributes | .gitattributes | | | | .gitignore | .gitignore | | | | BR.py | BR.py | | | | BR_OOPDiagram.drawio | BR_OOPDiagram.drawio | | | | LogSetup.py | LogSetup.py | | | | SocketBR.py | SocketBR.py | | | | readme.md | readme.md | | | | router.py | router.py | | | | test.py | test.py | | | | View all files |

Repository files navigation

Buckshot Roulette

Description

Buckshot Roulette is a text-based Python game script that recreates the well known game of the same name. The Russian Roulette-style game revolves around players taking turns shooting, using items, and managing their health until a round is over. Players must strategies, using various items with different effects to win 3 rounds.

Implementation

The game is implemented using Python 3 and utilizes various modules such as random, logging, and json for functionality. It consists of several classes:

  • BR: Represents the main class for the Buckshot Roulette game. It manages game logic, player turns, rounds, shooting mechanics, and item usage.
  • Player: Represents a player in the game, storing their name, health, inventory, win count, and whether they are cuffed.
  • Gun: Represents the gun used in the game, handling actions such as loading bullets, shuffling the chamber, shooting, and checking for emptiness.
  • Gallery: Represents a player’s inventory of items, allowing them to add, use, and clear items.

The game flow involves a loop where players take turns performing actions such as shooting, using items, and interacting with the game environment. The script logs various game events using the Python logging module. Game data is saved in a JSON file with a filename based on the current players, date and time.

Updates

  • 9 Apr 2024: ANOTHER ITEM - PLUCK. Allows you to steal and use an item from your opponent.
  • 9 Apr 2024: 2 NEW ITEMS - SPIKE AND 8BALL. Spike give you a 40% chance to gain 2 health, but you may lose one, whereas 8Ball tells you whether a random bullet is live or dead. Also, Double or Nothing Mode can now be set in game.
  • 8 Apr 2024: NEW ITEM - TWIST. (If you cannot tell there is now a compulsion for them all to be 5 letters long) Flips the top bullet whether from live to dead ot from dead to live. More coming soon to match new update.
  • 22 Feb 2024: The Q-Learning algorithm has been tied up and full games can now be played with no errors
  • 4 Feb 2024: The Q-Learning and epsilon-greedy algorithms have been implemented, allowing for some learning to take place and game play against a slightly smart bot.
  • 3 Feb 2024: Random Bot now added to the game, allowing for 1 or 2 player games. Also added a simulation program that allows you generate games between bots
  • 3 Feb 2024: This Read Me exists!! The game now has logging and a save mechanism as well as the game being generally tidied up.

Future Plans

  • Add double or nothing mode.
  • Create an Online Gui
  • Refine reward system for the bots

Feel free to contribute to the project and suggest improvements!

About

A recreation of the popular game Buckshot Roulette, with 2 player games and different bots implemented.

Resources

Readme Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks Report repository

Releases

No releases published

Packages 0

No packages published

Languages

  • Python66.5%
  • JavaScript22.5%
  • CSS8.1%
  • HTML2.9%
NameNameLast commit messageLast commit date

Latest commit

History 24 Commits |

| .vscode | .vscode | | | | br | br | | | | .gitattributes | .gitattributes | | | | .gitignore | .gitignore | | | | BR.py | BR.py | | | | BR_OOPDiagram.drawio | BR_OOPDiagram.drawio | | | | LogSetup.py | LogSetup.py | | | | SocketBR.py | SocketBR.py | | | | readme.md | readme.md | | | | router.py | router.py | | | | test.py | test.py | | | | View all files |

History

24 Commits24 Commits A recreation of the popular game Buckshot Roulette, with 2 player games and different bots implemented.

Resources

Readme Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks Report repository No releases published No packages published - Python66.5%

  • JavaScript22.5%
  • CSS8.1%
  • HTML2.9%

This site only collects related articles. Viewing the original, please copy and open the following link:GitHub - StreetTT/BuckshotRoulette: A recreation of the popular game Buckshot Roulette with 2 player games and different bots implemented.

🔥 🌟 buckshot roulette 😈
    🎢 Latest Articles 🌟🎼 Popular Articles 🎤
    📹 Recommended Articles 🎺
    #Article TitleKeywordArticle LinkArticle Details
    wpt global