C # write checkers

zhaozj2021-02-16  57

I like to play checkers from small .. But it seems that the rules of us are different from the crowds. The association does not support email flying (there is a child in the middle) ... just learn C #, so take practice. .

This program has been written for a few months .. I haven't time to update it. It is still a single version (I am originally made into the network version) ... I will write a procedure for the program now ... If Interested in modification, please send me a modified version. Thank you.

The overall idea is this: 1, each chess piece is an object. It includes the Point of the upper corner point, and the board coordinates (below). And whether to right shift. 2, chess board coordinate concept, as shown, we Describe the chessboard as a XYZ three-axis. (The program is a long time, I can't remember which species XYZ is, but XYZ is which is actually not important);

Then start: 1. Program start, initialize the board; 2, set onMousedown.Onmousedown is actually the main program; 3. There are several rules of checkers ... one one write processing method. a) moving a step B) The jump of the baffle is evacuated in the middle of the intermediate;

Other please see the comment of the program. . The program annotation is also clear. (All the code involving the network in the program is currently useless. I used to do a little residual code when I have a online version).

Since I don't support the RAR file download, I have to change it to txt upload, please click the download tool to download and change it to RAR;

(The server problem is not passed on by the server problem, and it is now supplemented.)

If there is any opinion, welcome to advise: appledgedotnet@hotmail.com

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

转载请注明原文地址:https://www.9cbs.com/read-23504.html

New Post(0)