AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Simple chess game in java source code3/26/2023 ![]() A typical switch and case condition loop is used to check the type of piece initially and then based on the case identified the moves are defined. ![]() These moves are mainly decided by the position of the piece on the chess board and few predefined moves are assigned to the piece based on the nature of the piece on the board. Move against the human move from the computer side need lot of estimations and eliminations and in there, typical tree search algorithm can be used to search for the best move possible. ![]() A separate module known as chess engine is designed in this program to handle all the possible moves and a separate module of code is required as the possible moves are really high in a chess game. Representing the possible moves is really an important aspect in designing the chess game and this section explains the actual procedure followed to handle all the possible moves in this application. ![]() Design of this chess game is divided in to following modules: ![]()
0 Comments
Read More
Leave a Reply. |