0. 说明
基于 pywebio 库实现的简易版德州扑克网页版。可供朋友间偶尔玩玩。

pywebio 是一个个人体验蛮适合写轻度网页应用的 python 库,可以轻易控制输出各种 markdown 方式的页面。还是位华人实现的,非常好用。
pywebio 文档见:https://pywebio.readthedocs.io/en/latest/guide.html
个人突发奇想基于 pywebio 写了个简易的网页德州扑克,可以用手机或电脑浏览器玩(不过页面效果确实比不上有专门的 UI 的德州游戏,但胜在方便,朋友点一下链接就能开完,不需要下载。自己想更新也方便)
1. 运行方式
下载工程:https://github.com/Raytto/poker_online

进src文件夹,python3运行game_v2.py即可
python3 game_v2.py

测试时可以开多个浏览器访问对应网址,建不同账号对打。(坐下两名以上玩家后会自动开始发牌)

如果希望朋友一起玩,则需要在自己的服务器上运行(注意防火墙需要打开对应端口)
2. 代码结构简介

有问题或建议可随时留言讨论