四季有时,花开有序 团队公告备份
2025-09-03 15:39:37
发布于:天津
气死那些删公告的
># 谁在改公告?我通知没了!自己找副队长承认错误去就没逝。
**欢迎加入团队!这是一个充满诗意的团队,你可以和大家一起学习、讨论、聊天,祝你刷题愉快!**
***
### 团队守则
* 不要随便踢人,有状况可以先放小黑屋
* 更改分组提前跟队长说,备注名随便改
* 如果小黑屋没有人,管理员就可以带薪放假
* 欢迎创建题目、拉题单,每组组长可以布置作业
* 想要创建竞赛先告诉队长或副队长
***
### 通知栏
>**招聘:小黑屋管理员**(本月管理员:[C++真真真难啊啊啊](https://www.acgo.cn/person/2907471))
>要求:在线时间较长
>待遇:副队长在线的时候可以给你解题
>工资:每天20积分
>面试:找[副队长](https://www.acgo.cn/person/4293588)
***
### 团队帖子
[团队讨论区](https://www.acgo.cn/discuss/rest/52596):讨论学术知识,聊天请去聊天区
[团队聊天区](https://www.acgo.cn/discuss/rest/52598):闲聊、八卦、吐槽,干啥都行
[团队积分表](https://www.acgo.cn/discuss/rest/52599):统计成员积分数据,积分可以兑换奖励
[团队娱乐区](https://www.acgo.cn/discuss/rest/52600):不定期更新有趣内容,可能有惊喜
***
**意见、举报请联系**
**[队长](https://www.acgo.cn/person/4347060):4347060**
**[副队长](https://www.acgo.cn/person/4293588):4293588**
全部评论 1
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶#include <bits/stdc++.h>
#include <conio.h>
using namespace std;
void memu();
struct Pickaxe {
int a[5] = {20, 30, 50};
int hardness, grade;
Pickaxe (int grade = 0) {
this -> grade = grade;
}
};
struct Player {
vector <Pickaxe> pickaxe;
int mines[5] = {0, 0, 0};
int money = 0;
int power = 114514;
};
Player player;
struct Mine {
int n;
char mine[50][50];
bool isShow[50][50];
string information;
struct Pos {
int x, y;
Pos (int x = 1, int y = 1) {
this -> x = x;
this -> y = y;
}
};
Pos playerPos;
Mine (int n = 4, Pos pos = {1, 1}) {
this -> n = n;
playerPos = pos;
information = "";
srand(time(0));
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
mine[i][j] = rand() % 2 ? ' ' : '';
isShow[i][j] = 0;
}
}
mine[rand() % (n - 1) + 2][rand() % (n - 1) + 2] = 'O';
isShow[playerPos.x][playerPos.y] = 1;
}
void pr() {
system("cls");
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
if (i == playerPos.x && j == playerPos.y) {
printf("@");
} else if (isShow[i][j]) {
printf("%c", mine[i][j]);
} else {
printf("#");
}
printf(" ");
}
printf("\n");
}
printf("%s\n", information.c_str());
printf("体力:%d", player.power);
}
void dig(int x, int y) {
if (!isShow[x][y] && player.power) {
if (mine[x][y] == '') {
int r = rand() % 100 + 1;
if (1 <= r && r <= 75) {
r = 0;
} else if (76 <= r && r <= 95) {
r = 1;
} else {
r = 2;
}
player.mines[r]++;
string s[5] = {"铁", "金", "钻石"};
information = "你挖到了" + s[r] + "矿";
} else if (mine[x][y] == 'O') {
information = "你挖到了通往下一层的洞口";
} else {
information = "你什么都没挖到";
}
isShow[x][y] = 1;
player.power--;
} else {
information = "";
}
}
int playerMove(char key) {
int d[4][2] = {-1, 0, 1, 0, 0, -1, 0, 1};
int f = -1;
switch (key) {
case 'w':
f = 0;
break;
case 's':
f = 1;
break;
case 'a':1周前 来自 浙江
1
有帮助,赞一个