• 大小: 0.37M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: 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.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
    {
        //保存所有交叉点的棋子
        private Piece[] _chess = new Piece[11 10];

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

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

        //保存行高和列宽

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-15 12:54  Chess\
     目录           0  2019-05-08 19:07  Chess\Chess\
     文件         905  2019-04-15 12:54  Chess\Chess.sln
     文件       15872  2019-05-08 19:07  Chess\Chess.suo
     目录           0  2019-04-15 13:00  Chess\Chess\bin\
     目录           0  2019-05-08 18:59  Chess\Chess\bin\Debug\
     文件       26624  2019-05-08 19:07  Chess\Chess\bin\Debug\Chess.exe
     文件       46592  2019-05-08 19:07  Chess\Chess\bin\Debug\Chess.pdb
     文件       14328  2019-05-08 19:07  Chess\Chess\bin\Debug\Chess.vshost.exe
     文件         490  2018-08-10 13:55  Chess\Chess\bin\Debug\Chess.vshost.exe.manifest
     文件       63289  2011-02-22 21:37  Chess\Chess\bin\Debug\desktop.jpg
     目录           0  2019-04-17 19:04  Chess\Chess\bin\Debug\images\
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红卒.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红士.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红帅.bmp
     文件        5046  1999-11-04 14:43  Chess\Chess\bin\Debug\images\红方头像.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红炮.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红相.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红车.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\红马.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝兵.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝士.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝将.bmp
     文件        5046  1999-11-04 14:46  Chess\Chess\bin\Debug\images\蓝方头像.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝炮.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝象.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝车.bmp
     文件        4560  2007-12-28 09:52  Chess\Chess\bin\Debug\images\蓝马.bmp
     目录           0  2019-05-08 18:59  Chess\Chess\bin\Debug\Sounds\
     文件      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
............此处省略27个文件信息

评论

共有 条评论