GithubHelp home page GithubHelp logo

anime-vyuh / kakegurui-game Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 4.66 MB

Indian Poker is a game played to settle the debt in anime Kakegurui. The event or game is named as "Debt Swapping Game".

Home Page: https://animevyuh.org/kakegurui-indian-poker/

Python 99.76% PowerShell 0.17% Shell 0.07%
python3 game poker poker-game termcolor

kakegurui-game's Introduction

Kakegurui Indian Poker

Yumeko-Mary_Kakegurui

Rules

  • Each group of 4 plays with Deck of 40 cards instead of 52, with all the face cards and joker removed.
  • The dealer will pass out 2 cards to each player.
  • Initially 10 chips is provided to each player, which add up to total of their debt. If you do the calculation, each chips costs 1/10 of the players's debt, so it is not like a normal poker where the actual sum matters.
  • The game will be played for 10 Rounds, each ayer needs to pay at least one chip in each round to participate.
  • Furthermore, players may only bet up to 5 chips at once. Players can fold, when they are not willing to bet.
  • The strongest hand is Pair, where the number match. Up next is Suit, where the club match. And the weakest is pig, where there is no similarly in the cards.
  • In case if multiplayer players have the same hand then winner is decided by highest sum of the cards.

Python Code

Few rules modification has been made here.

  • Instead of 4 or 5 players, this code is programmed only for 2 players i.e., you and the computer.
  • Programming it for 4 to 5 players is no nig deal but since it is command line Python Code, 1 player vs Computer is the most preferable.
  • Ok moving on to the next modification. There is no debt imposed on the player, instead chips are at stake. Players compete with computers starting with 20 chips.
  • Match fee of 1 chip is collected after every round.
  • Once the fee is collected, the player is supposed to bet in a range of 1-5. And 0 is to Show or Fold when you are not willing to bet.

Termcolor

Adds up great look to the output statements by changing the color of the output. It is easy to implement.

termcolor.cprint("Message","color") #syntax
termcolor.cprint("Anime Vyuh","red") #example

kakegurui-game's People

Contributors

lucifertrj avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.