瞎写的推箱子
#include<stdio.h>
#include<stdlib.h>
#define ROWS 11
#define COLS 11
int people_cols = 2;
int people_rows = 4;
char map[ROWS][COLS] = {
"##########",
"# #### #",
"# #",
"# X#### #",
"# 0 #",
"##### #",
"# #### #",
"# #",
"# ######",
"# ",
"##########"
};
void showMap();
char enterDirection();
void moveToUp();
void moveToDown();
void moveToLeft();
void moveToRight();
int main()
{
int flag = 1;
while (flag==1) {
system("cls");
showMap();
if (map[9][9] == 'X') {
printf("恭喜你,你通关游戏了,你的智商已经超过3岁小孩了!\nGood!\n");
break