├── test ├── config.json └── classes │ └── game.test.js ├── index.js ├── src ├── client │ ├── favicon.ico │ ├── img │ │ ├── ptwulogo.png │ │ └── pokerBanner.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── mstile-150x150.png │ ├── apple-touch-icon.png │ ├── android-chrome-192x192.png │ ├── android-chrome-384x384.png │ ├── css │ │ ├── font │ │ │ ├── Metropolis-Bold.otf │ │ │ ├── Metropolis-Thin.otf │ │ │ ├── CircularStd-Bold.otf │ │ │ ├── CircularStd-Bold.woff │ │ │ ├── CircularStd-Book.woff │ │ │ ├── CircularStd-Medium.otf │ │ │ ├── Metropolis-Black.otf │ │ │ ├── Metropolis-Light.otf │ │ │ ├── Metropolis-Medium.otf │ │ │ ├── Metropolis-Regular.otf │ │ │ ├── roboto │ │ │ │ ├── Roboto-Bold.eot │ │ │ │ ├── Roboto-Bold.ttf │ │ │ │ ├── Roboto-Thin.eot │ │ │ │ ├── Roboto-Thin.ttf │ │ │ │ ├── Roboto-Bold.woff │ │ │ │ ├── Roboto-Bold.woff2 │ │ │ │ ├── Roboto-Light.eot │ │ │ │ ├── Roboto-Light.ttf │ │ │ │ ├── Roboto-Light.woff │ │ │ │ ├── Roboto-Medium.eot │ │ │ │ ├── Roboto-Medium.ttf │ │ │ │ ├── Roboto-Thin.woff │ │ │ │ ├── Roboto-Thin.woff2 │ │ │ │ ├── Roboto-Light.woff2 │ │ │ │ ├── Roboto-Medium.woff │ │ │ │ ├── Roboto-Medium.woff2 │ │ │ │ ├── Roboto-Regular.eot │ │ │ │ ├── Roboto-Regular.ttf │ │ │ │ ├── Roboto-Regular.woff │ │ │ │ └── Roboto-Regular.woff2 │ │ │ ├── CircularStd-Medium.woff │ │ │ ├── Metropolis-ExtraBold.otf │ │ │ ├── Metropolis-SemiBold.otf │ │ │ ├── Metropolis-BlackItalic.otf │ │ │ ├── Metropolis-BoldItalic.otf │ │ │ ├── Metropolis-ExtraLight.otf │ │ │ ├── Metropolis-LightItalic.otf │ │ │ ├── Metropolis-MediumItalic.otf │ │ │ ├── Metropolis-ThinItalic.otf │ │ │ ├── Metropolis-RegularItalic.otf │ │ │ ├── Metropolis-SemiBoldItalic.otf │ │ │ ├── Metropolis-ExtraBoldItalic.otf │ │ │ ├── Metropolis-ExtraLightItalic.otf │ │ │ └── SIL Open Font License.txt │ │ └── index.css │ ├── font │ │ └── roboto │ │ │ ├── Roboto-Bold.eot │ │ │ ├── Roboto-Bold.ttf │ │ │ ├── Roboto-Bold.woff │ │ │ ├── Roboto-Light.eot │ │ │ ├── Roboto-Light.ttf │ │ │ ├── Roboto-Thin.eot │ │ │ ├── Roboto-Thin.ttf │ │ │ ├── Roboto-Thin.woff │ │ │ ├── Roboto-Bold.woff2 │ │ │ ├── Roboto-Light.woff │ │ │ ├── Roboto-Light.woff2 │ │ │ ├── Roboto-Medium.eot │ │ │ ├── Roboto-Medium.ttf │ │ │ ├── Roboto-Medium.woff │ │ │ ├── Roboto-Medium.woff2 │ │ │ ├── Roboto-Regular.eot │ │ │ ├── Roboto-Regular.ttf │ │ │ ├── Roboto-Regular.woff │ │ │ ├── Roboto-Thin.woff2 │ │ │ └── Roboto-Regular.woff2 │ ├── browserconfig.xml │ ├── site.webmanifest │ ├── safari-pinned-tab.svg │ ├── index.html │ ├── main.js │ └── js │ │ └── jquery-2.1.4.min.js ├── classes │ ├── card.js │ ├── player.js │ ├── deck.js │ └── game.js └── app.js ├── .gitignore ├── package.json ├── .github └── workflows │ └── main.yml ├── LICENSE └── README.md /test/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "verbose": false 3 | } -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | exports.Game = require('./src/classes/game.js'); -------------------------------------------------------------------------------- /src/client/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/favicon.ico -------------------------------------------------------------------------------- /src/client/img/ptwulogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/img/ptwulogo.png -------------------------------------------------------------------------------- /src/client/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/favicon-16x16.png -------------------------------------------------------------------------------- /src/client/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/favicon-32x32.png -------------------------------------------------------------------------------- /src/client/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/mstile-150x150.png -------------------------------------------------------------------------------- /src/client/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/apple-touch-icon.png -------------------------------------------------------------------------------- /src/client/img/pokerBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/img/pokerBanner.png -------------------------------------------------------------------------------- /src/client/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/android-chrome-192x192.png -------------------------------------------------------------------------------- /src/client/android-chrome-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/android-chrome-384x384.png -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Bold.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Thin.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Thin.otf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Bold.eot -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Bold.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Light.eot -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Light.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Thin.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Thin.eot -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Thin.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Thin.woff -------------------------------------------------------------------------------- /src/client/css/font/CircularStd-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/CircularStd-Bold.otf -------------------------------------------------------------------------------- /src/client/css/font/CircularStd-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/CircularStd-Bold.woff -------------------------------------------------------------------------------- /src/client/css/font/CircularStd-Book.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/CircularStd-Book.woff -------------------------------------------------------------------------------- /src/client/css/font/CircularStd-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/CircularStd-Medium.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Black.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Light.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Medium.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-Regular.otf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Bold.eot -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Bold.ttf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Thin.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Thin.eot -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Thin.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Medium.eot -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Medium.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Medium.woff -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Medium.woff2 -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Regular.eot -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Regular.ttf -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Regular.woff -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Thin.woff2 -------------------------------------------------------------------------------- /src/client/css/font/CircularStd-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/CircularStd-Medium.woff -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-ExtraBold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-ExtraBold.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-SemiBold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-SemiBold.otf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Light.eot -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Light.ttf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Medium.eot -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Medium.ttf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Thin.woff -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Thin.woff2 -------------------------------------------------------------------------------- /src/client/font/roboto/Roboto-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/font/roboto/Roboto-Regular.woff2 -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-BlackItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-BlackItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-BoldItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-BoldItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-ExtraLight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-ExtraLight.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-LightItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-LightItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-MediumItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-MediumItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-ThinItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-ThinItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Medium.woff -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Medium.woff2 -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Regular.eot -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Regular.ttf -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Regular.woff -------------------------------------------------------------------------------- /src/client/css/font/roboto/Roboto-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/roboto/Roboto-Regular.woff2 -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-RegularItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-RegularItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-SemiBoldItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-SemiBoldItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-ExtraBoldItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-ExtraBoldItalic.otf -------------------------------------------------------------------------------- /src/client/css/font/Metropolis-ExtraLightItalic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ptwu/distributed-texasholdem/HEAD/src/client/css/font/Metropolis-ExtraLightItalic.otf -------------------------------------------------------------------------------- /src/client/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #da532c 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | **/node_modules 3 | **/bower_components 4 | 5 | # Cache & History 6 | .npm 7 | .eslintcache 8 | .firebase/ 9 | .node_repl_history 10 | .mypy_cache/ 11 | *.tgz 12 | 13 | # Logs 14 | logs 15 | *.log 16 | firebase-debug.log* 17 | npm-debug.log* 18 | yarn-debug.log* 19 | yarn-error.log* 20 | 21 | # IDE Configs 22 | **/.vs 23 | **/.vscode 24 | *.code-workspace 25 | **/.idea 26 | 27 | # Misc 28 | .DS_Store 29 | /*.env 30 | 31 | .prettierrc -------------------------------------------------------------------------------- /src/client/site.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "short_name": "", 4 | "icons": [ 5 | { 6 | "src": "/android-chrome-192x192.png", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | }, 10 | { 11 | "src": "/android-chrome-384x384.png", 12 | "sizes": "384x384", 13 | "type": "image/png" 14 | } 15 | ], 16 | "theme_color": "#ffffff", 17 | "background_color": "#ffffff", 18 | "display": "standalone" 19 | } 20 | -------------------------------------------------------------------------------- /src/client/safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.11, written by Peter Selinger 2001-2013 9 | 10 | 12 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/classes/card.js: -------------------------------------------------------------------------------- 1 | //representation of a card in a standard 52 deck 2 | const Card = function (value, suit) { 3 | this.value = value; 4 | this.suit = suit; 5 | 6 | const constructor = (function () {})(this); 7 | 8 | this.compare = (card) => { 9 | if (this.value < card.getValue()) return -1; 10 | if (this.value == card.getValue()) return 0; 11 | return 1; 12 | }; 13 | 14 | this.isGreater = (card) => { 15 | return this.value > card.getValue() ? true : false; 16 | }; 17 | 18 | this.getValue = () => { 19 | return this.value; 20 | }; 21 | 22 | this.getSuit = () => { 23 | return this.suit; 24 | }; 25 | 26 | this.print = () => console.log(this.getValue() + ' of ' + this.getSuit()); 27 | }; 28 | 29 | module.exports = Card; 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "distributed-texasholdem", 3 | "version": "1.0.0", 4 | "description": "distributed texas hold 'em poker made using socket.io, Node, and express", 5 | "main": "index.js", 6 | "repository": "https://github.com/ptwu/distributed-texasholdem.git", 7 | "author": "Peter Wu ", 8 | "license": "MIT", 9 | "scripts": { 10 | "start": "node ./src/app.js", 11 | "dev": "nodemon ./src/app.js", 12 | "test": "jest --config=test/config.json" 13 | }, 14 | "dependencies": { 15 | "cluster": "^0.7.7", 16 | "express": "^4.17.1", 17 | "heroku": "^7.39.3", 18 | "jshint": "^2.9.3", 19 | "pokersolver": "^2.1.3", 20 | "socket.io": "^2.3.0" 21 | }, 22 | "devDependencies": { 23 | "jest": "^26.0.1" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | 3 | name: CI 4 | 5 | # Controls when the action will run. Triggers the workflow on push or pull request 6 | # events but only for the master branch 7 | on: 8 | push: 9 | branches: [ master ] 10 | pull_request: 11 | branches: [ master ] 12 | 13 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 14 | jobs: 15 | # This workflow contains a single job called "build" 16 | build: 17 | # The type of runner that the job will run on 18 | runs-on: ubuntu-latest 19 | 20 | # Steps represent a sequence of tasks that will be executed as part of the job 21 | steps: 22 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 23 | - uses: actions/checkout@v2 24 | 25 | - name: Set up Node 26 | uses: actions/setup-node@v1 27 | 28 | - name: Yarn Install 29 | run: yarn install 30 | 31 | - name: Run Tests 32 | run: yarn test 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Peter Wu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Multiplayer Texas Hold 'Em 2 | [](https://github.com/ptwu/distributed-texasholdem/blob/master/LICENSE) 3 |  4 |  5 | 6 | Play at https://distributed-texasholdem.onrender.com. Note that the site has to cold start because I'm a 7 | college student who doesn't want to pay for anything beyond the free plan. 8 | 9 | Using `socket.io`, `Node.js`, and `express` to make a distributed poker game. Allows for multiple 10 | gameplay rooms simultaneously across different devices. 11 | 12 |  13 |  14 | 15 | ## Commands 16 | `yarn install` installs all the dependencies required to run the webapp. 17 | 18 | `yarn dev` starts the game with hot reloading provided by `nodemon`. 19 | - The game will be viewable by navigating to `localhost:3000`. 20 | 21 | `yarn start` runs the Node server without hot reloading. Intended for deployment use. 22 | 23 | `yarn test` evaluates the unit tests located in test/classes/. 24 | -------------------------------------------------------------------------------- /src/classes/player.js: -------------------------------------------------------------------------------- 1 | const Player = function (playerName, socket, debug) { 2 | this.username = playerName; 3 | this.cards = []; 4 | this.socket = socket; 5 | this.currentCard = null; 6 | this.money = 100; 7 | this.buyIns = 0; 8 | this.status = ''; 9 | this.blindValue = ''; 10 | this.dealer = false; 11 | this.allIn = false; 12 | this.goAgainStatus = false; 13 | this.debug = debug || false; 14 | 15 | this.addCard = (card) => { 16 | this.cards.push(card); 17 | }; 18 | 19 | this.log = () => { 20 | if (this.debug) { 21 | console.log(...arguments); 22 | } 23 | }; 24 | 25 | this.setStatus = (data) => (this.status = data); 26 | this.setBlind = (data) => (this.blindValue = data); 27 | this.setDealer = (data) => (this.dealer = data); 28 | this.getUsername = () => { 29 | return this.username; 30 | }; 31 | this.getBuyIns = () => { 32 | return this.buyIns; 33 | }; 34 | this.getMoney = () => { 35 | return this.money; 36 | }; 37 | this.getStatus = () => { 38 | return this.status; 39 | }; 40 | this.getBlind = () => { 41 | return this.blindValue; 42 | }; 43 | this.getDealer = () => { 44 | return this.dealer; 45 | }; 46 | 47 | this.emit = (eventName, payload) => { 48 | this.socket.emit(eventName, payload); 49 | }; 50 | }; 51 | 52 | module.exports = Player; 53 | -------------------------------------------------------------------------------- /src/classes/deck.js: -------------------------------------------------------------------------------- 1 | const Card = require('./card'); 2 | 3 | // representation of a deck of standard (52) playing cards 4 | const Deck = function () { 5 | this.cards = []; 6 | 7 | const constructor = (function (deck) { 8 | const suits = ['♠', '♥', '♦', '♣']; 9 | for (let i = 0; i < suits.length; i++) { 10 | for (let j = 1; j <= 13; j++) { 11 | if (j === 1) { 12 | deck.cards.push(new Card('A', suits[i])); 13 | } else if (j === 11) { 14 | deck.cards.push(new Card('J', suits[i])); 15 | } else if (j === 12) { 16 | deck.cards.push(new Card('Q', suits[i])); 17 | } else if (j === 13) { 18 | deck.cards.push(new Card('K', suits[i])); 19 | } else { 20 | deck.cards.push(new Card(j, suits[i])); 21 | } 22 | } 23 | } 24 | })(this); 25 | 26 | this.shuffle = () => { 27 | this.cards = []; 28 | const suits = ['♠', '♥', '♦', '♣']; 29 | for (let i = 0; i < suits.length; i++) { 30 | for (let j = 1; j <= 13; j++) { 31 | if (j === 1) { 32 | this.cards.push(new Card('A', suits[i])); 33 | } else if (j === 11) { 34 | this.cards.push(new Card('J', suits[i])); 35 | } else if (j === 12) { 36 | this.cards.push(new Card('Q', suits[i])); 37 | } else if (j === 13) { 38 | this.cards.push(new Card('K', suits[i])); 39 | } else { 40 | this.cards.push(new Card(j, suits[i])); 41 | } 42 | } 43 | } 44 | }; 45 | 46 | this.dealRandomCard = () => { 47 | const index = Math.floor(Math.random() * this.cards.length); 48 | value = this.cards[index]; 49 | this.cards.splice(index, 1); 50 | return value; 51 | }; 52 | }; 53 | 54 | module.exports = Deck; 55 | -------------------------------------------------------------------------------- /src/client/css/index.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: Metropolis-Medium; 3 | src: url("font/Metropolis-Medium.otf"), 4 | url("font/Metropolis-Medium.otf") format("opentype"); 5 | } 6 | 7 | @font-face { 8 | font-family: Metropolis-Bold; 9 | font-weight: bold; 10 | src: url("font/Metropolis-Bold.otf"), 11 | url("font/Metropolis-Bold.otf") format("opentype"); 12 | } 13 | 14 | #mainContent { 15 | height: 100%; 16 | margin-left: 10px; 17 | margin-right: 10px; 18 | } 19 | 20 | #gameDiv { 21 | margin-left: 10px; 22 | margin-right: 10px; 23 | min-height: 95vh; 24 | } 25 | 26 | html, 27 | body, 28 | .login-box { 29 | background: #2e64bc; 30 | height: 95%; 31 | } 32 | 33 | .card { 34 | margin-right: auto !important; 35 | margin-left: auto !important; 36 | } 37 | 38 | body { 39 | font-family: Metropolis-Medium; 40 | } 41 | 42 | code { 43 | font-size: 24px; 44 | background-color: #ebebeb; 45 | } 46 | 47 | .playingCard_black { 48 | float: left; 49 | border: 5px solid black; 50 | background-color: white; 51 | border-radius: 5px; 52 | height: 135px; 53 | width: 90px; 54 | color: black; 55 | padding: 5px; 56 | margin: 8px; 57 | font-size: 28px; 58 | } 59 | 60 | #usernamesMoney { 61 | font-size: 30px; 62 | min-height: 219px; 63 | } 64 | 65 | .playingCard_red { 66 | float: left; 67 | border: 5px solid black; 68 | background-color: white; 69 | border-radius: 5px; 70 | height: 135px; 71 | width: 90px; 72 | color: red; 73 | padding: 5px; 74 | margin: 8px; 75 | font-size: 28px; 76 | } 77 | 78 | .menuButtons { 79 | zoom: 0.8; 80 | margin: 2px; 81 | } 82 | 83 | .card-content { 84 | font-size: 16px; 85 | } 86 | 87 | .theirTurn { 88 | border: 5px solid yellow; 89 | } 90 | 91 | .playingCard_red_opponent { 92 | float: left; 93 | border: 5px solid black; 94 | background-color: white; 95 | border-radius: 5px; 96 | height: 84px; 97 | width: 60px; 98 | color: red; 99 | padding: 5px; 100 | margin: 4px; 101 | font-size: 18px; 102 | } 103 | 104 | .playingCard_black_opponent { 105 | float: left; 106 | border: 5px solid black; 107 | background-color: white; 108 | border-radius: 5px; 109 | height: 84px; 110 | width: 60px; 111 | color: black; 112 | padding: 5px; 113 | margin: 4px; 114 | font-size: 18px; 115 | } 116 | 117 | .blankCard { 118 | float: left; 119 | background: repeating-linear-gradient( 120 | 45deg, 121 | #606dbc, 122 | #606dbc 10px, 123 | #465298 10px, 124 | #465298 20px 125 | ); 126 | border: 5px solid black; 127 | border-radius: 5px; 128 | height: 84px; 129 | width: 60px; 130 | padding: 10px; 131 | margin: 4px; 132 | } 133 | 134 | .selected { 135 | background: grey; 136 | border: 2px solid red; 137 | } 138 | 139 | #divStart { 140 | text-align: center; 141 | } 142 | 143 | .modal { 144 | position: absolute; 145 | } 146 | 147 | .toast { 148 | position: relative; 149 | z-index: -1 !important; 150 | } 151 | -------------------------------------------------------------------------------- /src/client/css/font/SIL Open Font License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Chris Simpson, with Reserved Font Name: "Metropolis". 2 | 3 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 4 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 5 | 6 | ----------------------------------------------------------- 7 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 8 | ----------------------------------------------------------- 9 | 10 | PREAMBLE 11 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 12 | 13 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 14 | 15 | DEFINITIONS 16 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 17 | 18 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 19 | 20 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 21 | 22 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 23 | 24 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 25 | 26 | PERMISSION & CONDITIONS 27 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 28 | 29 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 30 | 31 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 32 | 33 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 34 | 35 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 36 | 37 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 38 | 39 | TERMINATION 40 | This license becomes null and void if any of the above conditions are not met. 41 | 42 | DISCLAIMER 43 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- 1 | // server-side socket.io backend event handling 2 | const express = require('express'); 3 | const http = require('http'); 4 | const socketio = require('socket.io'); 5 | const Game = require('./classes/game.js'); 6 | 7 | const app = express(); 8 | const server = http.createServer(app); 9 | const io = socketio(server); 10 | 11 | const PORT = process.env.PORT || 3000; 12 | 13 | app.use('/', express.static(__dirname + '/client')); 14 | 15 | let rooms = []; 16 | 17 | io.on('connection', (socket) => { 18 | console.log('new connection ', socket.id); 19 | socket.on('host', (data) => { 20 | if (data.username == '' || data.username.length > 12) { 21 | socket.emit('hostRoom', undefined); 22 | } else { 23 | let code; 24 | do { 25 | code = 26 | '' + 27 | Math.floor(Math.random() * 10) + 28 | Math.floor(Math.random() * 10) + 29 | Math.floor(Math.random() * 10) + 30 | Math.floor(Math.random() * 10); 31 | } while (rooms.length != 0 && rooms.some((r) => r.getCode() === code)); 32 | const game = new Game(code, data.username); 33 | rooms.push(game); 34 | game.addPlayer(data.username, socket); 35 | game.emitPlayers('hostRoom', { 36 | code: code, 37 | players: game.getPlayersArray(), 38 | }); 39 | } 40 | }); 41 | 42 | socket.on('join', (data) => { 43 | const game = rooms.find((r) => r.getCode() === data.code); 44 | if ( 45 | game == undefined || 46 | game.getPlayersArray().some((p) => p == data.username) || 47 | data.username == undefined || 48 | data.username.length > 12 49 | ) { 50 | socket.emit('joinRoom', undefined); 51 | } else { 52 | game.addPlayer(data.username, socket); 53 | rooms = rooms.map((r) => (r.getCode() === data.code ? game : r)); 54 | game.emitPlayers('joinRoom', { 55 | host: game.getHostName(), 56 | players: game.getPlayersArray(), 57 | }); 58 | game.emitPlayers('hostRoom', { 59 | code: data.code, 60 | players: game.getPlayersArray(), 61 | }); 62 | } 63 | }); 64 | 65 | socket.on('startGame', (data) => { 66 | const game = rooms.find((r) => r.getCode() == data.code); 67 | if (game == undefined) { 68 | socket.emit('gameBegin', undefined); 69 | } else { 70 | game.emitPlayers('gameBegin', { code: data.code }); 71 | game.startGame(); 72 | } 73 | }); 74 | 75 | socket.on('evaluatePossibleMoves', () => { 76 | const game = rooms.find( 77 | (r) => r.findPlayer(socket.id).socket.id === socket.id 78 | ); 79 | if (game.roundInProgress) { 80 | const possibleMoves = game.getPossibleMoves(socket); 81 | socket.emit('displayPossibleMoves', possibleMoves); 82 | } 83 | }); 84 | 85 | socket.on('raiseModalData', () => { 86 | const game = rooms.find( 87 | (r) => r.findPlayer(socket.id).socket.id === socket.id 88 | ); 89 | if (game != undefined) { 90 | socket.emit('updateRaiseModal', { 91 | topBet: game.getCurrentTopBet(), 92 | usernameMoney: 93 | game.getPlayerBetInStage(game.findPlayer(socket.id)) + 94 | game.findPlayer(socket.id).getMoney(), 95 | }); 96 | } 97 | }); 98 | 99 | socket.on('startNextRound', () => { 100 | const game = rooms.find( 101 | (r) => r.findPlayer(socket.id).socket.id === socket.id 102 | ); 103 | if (game != undefined) { 104 | if (game.roundInProgress === false) { 105 | game.startNewRound(); 106 | } 107 | } 108 | }); 109 | 110 | // precondition: user must be able to make the move in the first place. 111 | socket.on('moveMade', (data) => { 112 | // worst case complexity O(num_rooms * num_players_in_room) 113 | const game = rooms.find( 114 | (r) => r.findPlayer(socket.id).socket.id === socket.id 115 | ); 116 | 117 | if (game != undefined) { 118 | if (data.move == 'fold') { 119 | game.fold(socket); 120 | } else if (data.move == 'check') { 121 | game.check(socket); 122 | } else if (data.move == 'bet') { 123 | game.bet(socket, data.bet); 124 | } else if (data.move == 'call') { 125 | game.call(socket); 126 | } else if (data.move == 'raise') { 127 | game.raise(socket, data.bet); 128 | } 129 | } else { 130 | console.log("ERROR: can't find game!!!"); 131 | } 132 | }); 133 | 134 | socket.on('disconnect', () => { 135 | const game = rooms.find( 136 | (r) => r.findPlayer(socket.id).socket.id === socket.id 137 | ); 138 | if (game != undefined) { 139 | const player = game.findPlayer(socket.id); 140 | game.disconnectPlayer(player); 141 | if (game.players.length == 0) { 142 | if (this.rooms != undefined && this.rooms.length !== 0) { 143 | this.rooms = this.rooms.filter((a) => a != game); 144 | } 145 | } 146 | } 147 | }); 148 | }); 149 | 150 | server.listen(PORT, () => console.log(`hosting on port ${PORT}`)); 151 | -------------------------------------------------------------------------------- /src/client/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Texas Hold 'Em - Distributed 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | Texas Hold 'Em Game 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Fold 46 | 47 | Check 48 | 49 | Bet 51 | 52 | Call 53 | 54 | Raise 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Texas Hold 'Em Poker - Distributed 79 | Welcome to Texas Hold 'Em Poker! Host a game and give the code to friends so they can join and play. 80 | 81 | 82 | 83 | Host 85 | Game 86 | Join 88 | Game 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | Host Game 97 | 98 | Enter your name, and then we'll give you a code which you can give to your friends as the host. 99 | 100 | Name 101 | 102 | 103 | Get 105 | Code 106 | 107 | 108 | 109 | 110 | 113 | 114 | 115 | 116 | 117 | 118 | Join Game 119 | 120 | Enter the your name and the code provided by the host to join their room: 121 | 122 | Name 123 | 124 | 125 | 126 | Code 127 | 128 | 129 | Join 131 | Game 132 | 133 | 134 | 135 | 136 | 139 | 140 | 141 | 142 | 143 | Bet 144 | 145 | 146 | Drag the slider to place your bet! 147 | 148 | 149 | 151 | 152 | 153 | 154 | Confirm 156 | Bet 157 | 158 | 161 | 162 | 163 | 164 | 165 | Raise 166 | 167 | 168 | Drag the slider to raise the current top bet! 169 | 170 | 171 | 172 | 173 | 174 | 175 | Confirm 177 | Raise 178 | 179 | 182 | 183 |
Welcome to Texas Hold 'Em Poker! Host a game and give the code to friends so they can join and play. 80 |
Enter your name, and then we'll give you a code which you can give to your friends as the host.
Enter the your name and the code provided by the host to join their room:
149 | 151 |
171 | 172 |