outerclass.cs

来自「人工智能 五子棋的实现。AI算法比较高」· CS 代码 · 共 38 行

CS
38
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace gobang
{
    class MessageDefine
    {
        public const byte COMM_MSG_DONOTHING = 0;
        public const byte COMM_MSG_REJECTED = 1;
        public const byte COMM_MSG_ACCEPT = 2;
        public const byte COMM_MSG_FIRST = 3;
        public const byte COMM_MSG_SECOND = 4;
        public const byte COMM_MSG_GAME_REQUIRE_START = 5;
        public const byte COMM_MSG_GAME_START = 6;
        public const byte COMM_MSG_CHESS = 7;
        public const byte COMM_MSG_TIMEOUT = 8;
        public const byte COMM_MSG_WIN = 9;
        public const byte COMM_MSG_LOSE = 10;
        public const byte COMM_MSG_DRAW = 11;
        public const byte REJECT_REASON_UNKNOW = 1;
        public const byte REJECT_REASON_INVALID_CHESS = 2;
        public const byte SOLUTION_NOACTION = 1;
        public const byte SOLUTION_ACTION_REPEAT = 1;
    }

    enum chess_color
    {
        Chess_Clr_Black = 1,
        Chess_Clr_White = 2,
    };

    enum log_type
    {
        log_chess = 0,
        log_result = 1,
    };
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?