• 大小: 0.20M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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;
using System.Drawing.Imaging;
using System.IO;
using System.Media;

namespace Chess
{
    //棋子枚举类型
    public enum Piece
    {
        无子 = 0
        红车 = 1 红马 = 2 红相 = 3 红士 = 4 红帅 = 5 红炮 = 6 红卒 = 7
        蓝车 = 8 蓝马 = 9 蓝象 = 10 蓝士 = 11 蓝将 = 12 蓝炮 = 13 蓝兵 = 14
    }

    //走棋方枚举类型
    public enum Player
    {
        无 = 0 红 = 1 蓝 = 2
    }

    //主窗口类
    public partial class FormMain : Form
    {
        //保存象棋棋盘的所有棋子值(棋盘共10行9列,但0行0列保留不用)
        private Piece[] _chess = new Piece[11 10];

        //保存所有的走棋步骤(List对象)
        private List _stepList = new List();

        //保存棋盘(细框)的左上角坐标
        private Point _leftTop = new Point(60 60);

        //保存棋盘格子的行高和列宽
        private int _rowHeight = 60;
        private int _colWidth = 60;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      24064  2020-05-12 15:19  Chess\Chess\bin\Debug\Chess.exe

     文件      42496  2020-05-12 15:19  Chess\Chess\bin\Debug\Chess.pdb

     文件      14328  2020-05-12 13:30  Chess\Chess\bin\Debug\Chess.vshost.exe

     文件        490  2018-08-09 14:42  Chess\Chess\bin\Debug\Chess.vshost.exe.manifest

    ..A.SH.        47  2020-04-13 14:28  Chess\Chess\bin\Debug\desktop.ini

     文件      63289  2011-02-22 21:37  Chess\Chess\bin\Debug\desktop.jpg

     文件     127076  2010-07-30 11:01  Chess\Chess\bin\Debug\Sounds\begin.wav

     文件       3362  2010-07-30 11:01  Chess\Chess\bin\Debug\Sounds\drop.wav

     文件      16992  2010-07-30 11:01  Chess\Chess\bin\Debug\Sounds\eat.wav

     文件      43402  2010-07-30 11:01  Chess\Chess\bin\Debug\Sounds\over.wav

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红卒.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红士.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红帅.bmp

     文件       5046  1999-11-04 14:43  Chess\Chess\bin\Debug\红方头像.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红炮.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红相.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红车.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\红马.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝兵.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝士.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝将.bmp

     文件       5046  1999-11-04 14:46  Chess\Chess\bin\Debug\蓝方头像.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝炮.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝象.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝车.bmp

     文件       4560  2007-12-28 09:52  Chess\Chess\bin\Debug\蓝马.bmp

     文件       3771  2020-05-09 19:52  Chess\Chess\Chess.csproj

     文件      41898  2020-05-12 15:19  Chess\Chess\FormMain.cs

     文件       6927  2020-05-12 14:53  Chess\Chess\FormMain.Designer.cs

     文件       6420  2020-05-12 14:53  Chess\Chess\FormMain.resx

............此处省略28个文件信息

评论

共有 条评论