当前位置:网站首页>Realization of greedy snake in C language
Realization of greedy snake in C language
2022-07-18 01:08:00 【_ Programming_】
C The realization of language greedy snake
1.1 snake
“ snake ” Game design
One 、 Requirements and scoring criteria
1、 Basic function :
1) from “@” Composed of characters “ The snake ” Crawl automatically on the screen 、 Use “w”. “s”.“a”.“d” Key to control the crawling direction ;2)“ The snake ” The length of is a fixed value 10;
3) Food can appear randomly on the screen ;
4) Be able to “ The snake ” Count the number of food eaten and display ;(6o branch )
2、 Extend the functionality :
1) According to “ The snake ” The amount of food eaten increases its length ;(65)
2) When “ The snake ” When it exceeds a certain length, it can molt , Both “ The snake ” The body is divided into the initial length part and the increased part after eating food , The growing part will be separated and left on the screen as the most obstacle , And the initial length part can continue to crawl 、 growth .(80)
3) Use easy× The library function changes the above functions to image version .(85) You can apply for defense .
3、 Free play
1) Students can give free play to design . Add according to the degree of difficulty (0~10 branch )
Two 、 Stage check
1) Whether the basic functions can be completed
2) Can the extension be completed 1、2
3) Can the extension be completed 3
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
边栏推荐
- Chat software project development 1
- [Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket
- C JSON is converted to entity class and generates code
- Huitong programming introductory course - 3 colorful
- 北航学长的NLP赛事教程!
- Configure scan packages based on annotations
- This is the most detailed arrangement of the basic knowledge of network workers in the whole network, and there is no one
- Uniapp+nodejs realize takeout app project 1- project introduction
- MFC学生成绩管理系统
- Prometheus operator deployment
猜你喜欢

Q3 qmainwindow menu bar and toolbar

An East goods order code # install dependencies

Compile assimp with vs2022 and load the model based on OpenGL
![[source code] implementation principle of HashSet](/img/6e/4cc6e4fffd0d6802a8338286a558d5.png)
[source code] implementation principle of HashSet

An OTL power amplifier circuit with a new vest

Q3 qmainwindow status bar riveted parts core parts

1300_ Analysis of priority related knowledge points in FreeRTOS

Penetration test CTF monograph

QT实现哈希表动态演示

浅谈 Slack Channel 支持的一些提高工作效率的特性
随机推荐
大佬们 flink cdc oracle 这个捕获的延时特别高 有啥优化方法吗
MFC实现类的序列化
Talking about some features of improving work efficiency supported by slack channel
Design of traffic light control system based on MCU
Threejs personal notes
Full link voltage testing experience of software testing technology (Part 2)
I would like to ask you guys, how to save the status of this op with Flink SQL
用户登录
Uniapp+nodejs realize takeout app project 1- project introduction
MFC file reading and writing based on a single document
Special topic of software R & D efficiency demand value stream analysis
Tracknet usage record: environment configuration
Prometheus operator deployment
微信内H5页面唤起小程序&App
胶印印刷机
360 released semi annual performance forecast, and the revenue of security business continued to grow
Q4资源文件2
JMeter 21天打卡 day02
C语言家族树管理系统
Neuron and metahunan drive whole body steps in real time