icefir / doublesidepoker Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
# 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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.