Chess/frmDubug.cs

(完整代码) 859B

using GameComponent;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Chess
{
    public partial class frmDubug : Form
    {
        public frmDubug(GameBoard board)
        {
            InitializeComponent();
            this.board = board;
        }

        private GameBoard board = null;

        private void btnJudge_Click(object sender, EventArgs e)
        {
            int x = (int)numX.Value - 1;
            int y = (int)numY.Value - 1;
            int dir = CboDir.SelectedIndex;
            int color = CboColor.SelectedIndex + 1;
            Object obj = board.GetSituationType(x, y, dir, color);
            MessageBox.Show(obj.ToString());
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。