GithubHelp home page GithubHelp logo

doublesidepoker's Introduction

# Project Title

Double side poker

## Description

Welcome to the two-player game of double-sided poker, where each player starts with 30 tokens.
The rules are simple: on each turn, players draw a card from the deck, which contains 90 cards.
The front side of the card is visible to both players,
but each player can only see the back side of their own card.

Before revealing their card, each player must place a token as their bet for the round.
They can also choose to bet on either theW front or back number of their card.
The player who goes first in placing their bet token alternates each round.
Once a player has placed their bet, it cannot be changed,
and a player cannot bet more than the remaining tokens their opponent has.

If both players bet the same amount of tokens,
the bet stage is complete and they reveal their card's bet side number.
The player with the higher number wins and gains all of the tokens bet in that round.
If one player bets more tokens than the other,
the bet stage continues until both players have bet the same number of tokens.

A player can choose to give up on the bet phase,
resulting in the opponent winning the round.
If both players have the same poker number,
the tokens bet in that round go into a token pool that will be won by the winner of the next round.

Players can also bet on both sides of the poker card,
but the bet player must double the amount of the other player's net bet.
If the bet player's front and back numbers are both higher than the opponent's,
they not only gain the bet amount but also receive an additional 10 tokens from the opponent.
May the best player win!

Video reference:
https://www.bilibili.com/video/BV1rW411j7ZE?t=4294.6&p=32


## Getting Started

### Dependencies

* Describe any prerequisites, libraries, OS version, etc., needed before installing program.
* ex. Windows 10

### Installing

* How/where to download your program
* Any modifications needed to be made to files/folders

### Executing program

* How to run the program
* Step-by-step bullets
```
code blocks for commands
```

## Help

Any advise for common problems or issues.
```
command to run if program contains helper info
```

## Authors

Contributors names and contact info

ex. Dominique Pizzie
ex. [@DomPizzie](https://twitter.com/dompizzie)

## Version History

* 0.2
    * Various bug fixes and optimizations
    * See [commit change]() or See [release history]()
* 0.1
    * Initial Release

## License

This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details

## Acknowledgments

Inspiration, code snippets, etc.
* [awesome-readme](https://github.com/matiassingers/awesome-readme)
* [PurpleBooth](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2)
* [dbader](https://github.com/dbader/readme-template)
* [zenorocha](https://gist.github.com/zenorocha/4526327)
* [fvcproductions](https://gist.github.com/fvcproductions/1bfc2d4aecb01a834b46)

doublesidepoker's People

Contributors

icefir avatar

Watchers

 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.