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