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.
--Command base --User manually (command) dealing (to simplify the program) --Play with a browser ――You can play while talking in chat
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.
--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!
http://blanktar.jp/blog/2014/05/python-gevent-websocket.html http://python.matrix.jp/pages/web/chat_sample.html
Recommended Posts