骑士飞行棋/ConsoleApplication1/Program.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
//创建角色信息
public static void InitRole(ref Player player_A, ref Player player_B)
{
Console.WriteLine("-------------------------两人对战-------------------------");
Console.Write("请玩家1设置角色名称: ");
player_A.Name = Console.ReadLine();
player_A.Sign = "A";
player_A.Location = 0;
player_A.State = true;
Console.Write("请玩家2设置角色名称: ");
player_B.Name = Console.ReadLine();
player_B.Sign = "B";
player_B.Location = 0;
player_B.State = true;
}
//构建关卡
public static void InitChapters(Chapter[] chapters)
{
//构建各种关卡
chapters[0].Name = "暂停一次";
chapters[0].Type = Legend.Pause;
chapters[0].Sign = "■";
chapters[0].Rule = "下一轮暂停一次";
chapters[1].Name = "幸运轮盘";
chapters[1].Type = Legend.Lucky;
chapters[1].Sign = "¤";
chapters[1].Rule = "两种选择:交换位置或轰炸对方(退6步)";
chapters[2].Name = "超级地雷";
chapters[2].Type = Legend.Landmine;
chapters[2].Sign = "★";
chapters[2].Rule = "轰炸对方,对方退6步";
chapters[3].Name = "时空隧道";
chapters[3].Type = Legend.Tunnel;
chapters[3].Sign = "〓";
chapters[3].Rule = "再前进10步";
chapters[4].Name = "普通关卡";
chapters[4].Type = Legend.Normal;
chapters[4].Sign = "∷";
chapters[4].Rule = "若对方在此格,将其轰炸回起点";
}
//构建地图
public static void InitMap(Chapter[] chapters, Chapter[] map)
{
//构建地图
for (int i = 0; i < map.Length; i++)
{
map[i] = chapters[4];
}
//其他关卡:各随机产生5个
for (int i = 0; i < 4; i++)
后面还有 209 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。