Chess/Chessman.cs
(完整代码) 837Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace Chess
{
class Chessman//棋子类
{
static Bitmap blackchess = new Bitmap(Chess.Properties.Resources.black);
static Bitmap whitechess = new Bitmap(Chess.Properties.Resources.white);
public int X { get; set; }
public int Y { get; set; }
public int Color { get; set; }
public void AddedToChessBoard(PictureBox[,] Chesspics)
{
Chesspics[X, Y].Visible = true;
if (Color == 0)
{
Chesspics[X, Y].Image = blackchess;
}
else
{
Chesspics[X, Y].Image = whitechess;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。