C # compile the checkers Program

Source: Internet
Author: User

I like checkers from an early age .. but it seems that our rules are different from those on the current crowd. The crowd does not seem to support the Air Separation (there is a sub-person in the middle )... I just learned C # again, so I used it to train my hands...

ThisProgramIt has been written for several months .. there is no time to update it. it's still a standalone version (I originally made it online )... now let's write down the program ideas .... if you are interested in making changes, please send me a modified version. thank you.

The general idea is as follows:
1. Each piece is an object. Its State includes the point at the top left corner, the coordinate of the Board (as described below), and whether to shift right.
2. The concept of the checkerboard coordinate. We regard the checkerboard as an XYZ three-axis plane. (The program has been put on hold for a long time. I don't know which XYZ is, but it doesn't matter which XYZ is );

Then begin the steps:
1. Start the program and initialize the chessboard;
2. Setting onmousedown. onmousedown is actually the main program;
3. There are several rules for checkers... one-to-one writing method.
A) move one step
B) step by step
C) when there is a child in the middle, the flight is separated;

For more information, see program comments .. Program annotations are clear. (All network-relatedCodeNone of them are currently useless. I used to have a bit of Residual code when I wanted to make the online version)

Because my poor free space does not support rarfile download, I had to change it to a TXT file upload. Right-click to download it with the download tool and change it to a RAR file;

(During the first upload, no slice is uploaded due to a server issue .)

If you have any comments, welcome advice: AppleDotnet@hotmail.com

Http://ssave.myrice.com/jc.txt

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.