Giter Site home page Giter Site logo

texas-hold-em-poker's Introduction

基于c++17和qt6开发的德州扑克游戏

本项目实现二人制德扑,人机1v1

游戏运行规则请见 docs/rule.doc

图片展示

首页图片

运行图片1

运行图片2

使用

通过QT Creater打开项目pro文件,编译运行即可

或者下载编译好的release文件

架构

此程序采用原生的c++实现后端,QT实现前端,**上类似于现代的WEB前端后分离项目

但代码没有完全分离(90%分离)

代码注释相对完善,尽量遵循见名知意的原则,我相信“优秀的代码本身就是一段注释”

后端架构

后端包含了下面几个类文件:

banker game player poker pokerHeap table

具体定义见对应头文件注释

将游戏运行逻辑解耦,功能分块给不同的类处理

前端架构

利用QT Widgets技术体系实现,QML进行界面美化。

主要控件为QStackedWidget实现页面转换,QPushButton实现交互,QLabel用于显示各种贴图

核心机制是利用QT的信号和槽处理控件的交互事件

贡献

程序架构+后端实现:freecho

UI以及QT相关:shenxi11

声明

本程序由两个普通的大二学生完成,完成后开源供新手互相学习,水平有限

你可以随意使用本仓库的代码,但由此造成的任何法律责任与我们无关,详情见MIT License

texas-hold-em-poker's People

Contributors

freecho avatar shenxi11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.