国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

[C#]騎士飛行棋

2019-11-08 02:13:32
字體:
來源:轉載
供稿:網友

【前言】

C#視頻最近看的比較慢,今天終于到了騎士飛行棋了

【正文】

if (playerPos[0] == playerPos[1] && playerPos[0] == pos) //如果玩家A和B在起點的時候畫            {                Console.ForegroundColor = ConsoleColor.Cyan;                temp = "<>";            }            else if (playerPos[0] == pos)//玩家A在地圖上顯示A            {                Console.ForegroundColor = ConsoleColor.Red;                temp = "A";            }            else if (playerPos[1] == pos)//玩家B在地圖上顯示B            {                Console.ForegroundColor = ConsoleColor.Blue;                temp = "B";            }            else            {                switch (Map[pos])                {                    case 0: Console.ForegroundColor = ConsoleColor.White;                        temp = "○";                        break;                    case 1: Console.ForegroundColor = ConsoleColor.Red;                        temp = "★";                        break;                    case 2: Console.ForegroundColor = ConsoleColor.Magenta;                        temp = "■";                        break;                    case 3: Console.ForegroundColor = ConsoleColor.Yellow;                        temp = "▲";                        break;                    case 4: Console.ForegroundColor = ConsoleColor.Green;                        temp = "◆";


上一篇:圖的存儲二

下一篇:go各種初步技能

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 通城县| 商河县| 察雅县| 潜江市| 年辖:市辖区| 中卫市| 尉氏县| 孙吴县| 潍坊市| 镇康县| 临朐县| 永年县| 玛沁县| 上饶县| 长治市| 遂溪县| 西乌珠穆沁旗| 杭锦后旗| 赤壁市| 长武县| 区。| 苗栗县| 鸡西市| 滦平县| 元阳县| 大英县| 资中县| 台前县| 新乡市| 沙雅县| 彭泽县| 两当县| 武强县| 曲阳县| 晋中市| 阳东县| 昌平区| 长顺县| 连州市| 肃南| 乐安县|