#include <iostream>
#include <cstdlib>
#include <cmath>
#define clear() cout << "\033c"
#include <ctime>
using namespace std;
int main()
{
cout << "欢迎来到摧毁碉堡!" << endl;
cout << "你的目标是炸毁那些堡垒!" << endl;
int n;
srand(time(0));
int sum = 0; // 总分计数器
int bg = time (0); // 记录开始时间
for (int t = 1; t <= 999; t++)
{
cout << "来!第" << t << "个堡垒!" << endl;
int score = 0; // 单次得分计数器
int dis = rand() % 8 + 3; // 到目标距离
int n = rand() % 5 + 3; // 堡垒大小
int num = rand() % 2; // 随机产生正方形或平行四边形两种堡垒:0表示正方形堡垒,1表示平行四边形堡垒
// cin >> num;
if (num == 0) // 0表示正方形堡垒
{
// 1.1 打印爆破之前的正方形堡垒图
for (int i = 1; i <= n; i++) // 总共有n行
{
for (int j = 1; j <= dis; j++) // 每行前dis列先打印空格
{
if (i == n && j == 1) // 打印前dis列的左下角的时候输出炮,其余都输出空格
{
cout << "?"