本文实例为大家分享了C语言实现2048游戏的具体代码,供大家参考,具体内容如下
滑块有颜色、有最高分(用到文件)
#include <stdio>
#include <stdlib>
#include <conio> /*使用getch()函数*/
#include <time>
#include <windows> /*使用Sleep()函数*/
void Menu();//菜单
void Rule_of_game();//游戏规则
void Begin(int max); //开始
void Table();//打印4×4方格
int Random_number1(