(The official Java development engineer QQ group (27163376), please enter your ID for verification. Recently, I have seen some articles explaining the code of Gobang and minesweeping. I also wrote a chess game for mobile phones. The writing is not very comprehensive, but it is still able to Implement basic functions and share them for everyone to exchange. Let me introduce my general idea first. I use canvas to let the mobile phone draw the chessboard and chess pieces by itself, instead of calling images. Although it is time-consuming, being able to train my programming skills can make the algorithm simple and save space at the same time. The details are in the code. First of all, there is a main program Game, which is relatively simple here, and everyone can understand it at a glance, so I won't say more.
chess\java/chess requires\images\main.gif
chess\java/Chinese chess requires\images\red pawn.gif
Chess\Java/Chinese Chess requires\images\Reds.gif
Chess\Java/Chinese Chess requires\images\Red General.gif
Chess\Java/Chinese Chess requires\images\Red Cannon.gif
Chess\Java/Chinese Chess requires \images\Red Elephant.gif
chess\java/chess requires\images\red rooks.gif
chess\java/Chinese chess requires \images\red horse.gif
chess\java/chess requires\images\black pawn.gif
chess\java/Chinese chess requires \images\Has.gif
chess\java/Chinese chess requires \images\black general.gif
chess\java/Chinese chess requires \images\Black Cannon.gif
chess\java/Chinese chess requires \images\black elephant.gif
chess\java/Chinese chess requires\images\black rook.gif
chess\java/Chinese chess requires \images\dark horse.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging and publishing\image\main.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red pawn.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Hongshi.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red General.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red Cannon.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red Elephant.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red Rook.GIF
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Red Horse.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Black pawn.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Haishi.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Black General.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Black Cannon.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Black Elephant.gif
Chess\Java/Chinese Chess Needs\Single-machine version products for reference\Packaging release\image\Black rook.gif
Chinese chess\Java/Chinese chess needs\stand-alone version products for reference\package release\image\dark horse.gif
.....too many files .....)