2048's People
2048's Issues
第二周进度
代码规范
- 禁止使用宏
- 分号以前不加空格
- 行宽原则上不超过80
- 一行只定义一个变量
大括号换行- return 后面的数值不加 ( )
- 每个文件应该含有版权信息及作者
- 左圆括号之后和右圆括号之前无空格
- 一目运算符与变量之间不加空格符隔开
- 函数名与参数同行
- 换行代码缩进4个空格,并且使用四个空格符取代制表符
- 二目以上的运算符与变量,常量之间用空格隔开(各类括号除外)
- 不论控制语句,循环语句后面的循环体有多少行,都必须使用花括号
- 普通函数,类型(含类与结构体,枚举类型),常量等使用大小写混合,可包含下划线
- 除函数定义的左大括号可置于行首以外,包括函数/类/结构体/枚举声明,各种语句的左大括号必须置于行末,所有右大括号独立成行
第一周进度
实现思路
程序分为三个部分:数字块、游戏控制框架和用户图形界面
- 数字块类包含了数字方块所需的信息,负责数字块的数字生成,存储数字块的数字以及该块是否处于下落状态
- 游戏框架类包含以下信息
- 分数统计
- 游戏流程和难度控制
- 处理用户输入
- 控制方块的下落和合并
- 当前游戏状态
- 用户图形界面使用QT实现,将框架的内容图像化。
分工
-
数字块类的实现:秉坤
-
游戏框架类
- 数字块的生成、合并条件判断、结束判断、输出显示:育招
- 方向键控制、随时间下落、多线程实现、分数统计:绿猪
-
用户图形界面:实现:泽瀚、秉坤 设计:yy
-
文档撰写、当前进度统计、遇到的问题和解决思路、项目说明和整体进度规划:湖倩、yy
第四周计划
- UI与底层的精细化实现
- UI与底层初步对接
第三周计划
具体实现
- 完成底层框架类方法
- UI初步构建
- 需求分析
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.