I made a poker game server chat-holdem using websocket with python

I wanted to play poker (Texas Hold'em) with my friends, but I couldn't find the right app or software, so I made a simple one myself.

Feature

--Command base --User manually (command) dealing (to simplify the program) --Play with a browser ――You can play while talking in chat

How to start the server

pip install gevent gevent-websocket git clone https://github.com/ryogrid/chat-holdem.git Then change the IP address in chat_holdem.html to your server's address python chat_holdem.py Then, by default, the server starts on port 8080, so access it with a browser.

State of play

d2dec0ea62ca9b1a76f1fd1e2f19178f.png

how to play

--Please understand the basics (explosion) --First all players join and then start the game with ng --Since it is a cut-out implementation, SB and BB people also need to bet clearly (at the time of preflop) --When moving to the next flop or when one game is over, use a command to move to the next one. --The dealer must also use pmv to move the chips when the winner is decided. --Any participant can type the command for the dealer --Up to 5 players can play so far

TODO --I'll do my best because it may be a bug (explosion) -~~ I haven't included the process to remove the folded player yet, so I'll write it (now I need to turn it to b 0 next time) ~~ --Write a command or process when the player leaves or leaves the seat -~~ Write a command to reset the table ~~ --Pururiku welcome!

The page that I referred to when using websocket with python

http://blanktar.jp/blog/2014/05/python-gevent-websocket.html http://python.matrix.jp/pages/web/chat_sample.html

Recommended Posts

I made a poker game server chat-holdem using websocket with python
I made a roguelike game with Python
I made a bin picking game with Python
I made a Christmas tree lighting game with Python
I made a Line-bot using Python!
I made a fortune with Python.
I made a daemon with Python
I made a simple typing game with tkinter in Python
I made a puzzle game (like) with Tkinter in Python
I made a character counter with Python
I made a Hex map with Python
I made a life game with Numpy
I made a simple blackjack with Python
I made a configuration file with Python
I made a neuron simulator with Python
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
〇✕ I made a game
I made a competitive programming glossary with Python
I made a weather forecast bot-like with Python.
I made a GUI application with Python + PyQt5
I made a Twitter fujoshi blocker with Python ①
I want to make a game with Python
[Python] I made a Youtube Downloader with Tkinter.
I made a Mattermost bot with Python (+ Flask)
I made a Twitter BOT with GAE (python) (with a reference)
I made a login / logout process using Python Bottle.
I made a ready-to-use syslog server with Play with Docker
I made a vim learning game "PacVim" with Go
I made blackjack with python!
I made a net news notification app with Python
I made a LINE BOT with Python and Heroku
[Python] I tried running a local server using flask
I made a python text
I made a school festival introduction game using Ren’py
I made a falling block game with Sense HAT
I made wordcloud with Python.
I made a package to filter time series with python
I made a quick feed reader using feedparser in Python
I made a simple book application with python + Flask ~ Introduction ~
I tried a stochastic simulation of a bingo game with Python
I made a Chatbot using LINE Messaging API and Python
I made a server with Python socket and ssl and tried to access it from a browser
Life game with Python [I made it] (on the terminal & Tkinter)
I made a simple circuit with Python (AND, OR, NOR, etc.)
I made a library to easily read config files with Python
I made a package that can compare morphological analyzers with Python
I made a game called Battle Ship using pygame and tkinter
I made a web server with Raspberry Pi to watch anime
I made a Nyanko tweet form with Python, Flask and Heroku
I made a client / server CLI tool for WebSocket (like Netcat for WebSocket)
I made a lot of files for RDP connection with Python
I made a shuffle that can be reset (reverted) with Python
I tried to make a todo application using bottle with python
Let's make a web chat using WebSocket with AWS serverless (Python)!
I made a segment tree with python, so I will introduce it
Let's make a shiritori game with Python
I made a payroll program in Python!
I drew a heatmap with seaborn [Python]
Beginner: I made a launcher using dictionary
I tried a functional language with Python
What I did with a Python array