用了前4章加上一点数组知识写的小游戏
代码附上:
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<stdbool.h>
#include<Windows.h>
int main()
{
printf("欢迎来到Simon游戏\n");
printf("这是一个记忆游戏,下面将会出现一系列数字,你将有1s的时间来记住他\n");
bool another_game = true;
int count = 2;
int tries = 0;
int Grade = 0;
do
{
const int DELAY = 1000;

这篇博客介绍了一个使用C语言编写的Simon小游戏。游戏中,玩家需要记住并复现一串随机生成的数字序列,随着游戏进程,序列长度会逐渐增加。博主分享了完整的游戏代码,包括生成随机数、玩家输入判断以及游戏难度升级等功能。
最低0.47元/天 解锁文章
1760

被折叠的 条评论
为什么被折叠?



