Java Chess Programming Video #27 The Move (Part VII)

preview_player
Показать описание

Chess Code Repository :

IDE:

Reading Material:
Рекомендации по теме
Комментарии
Автор

Just coming here to thank you once again for this incredible tutorial. Gonna watch and write this all through. More than halfway done already. It has being a great learning experience. Hope you share with us lengthy and thorough tutorials such as this one once again in the future. Thank so much!

Cecil_Augus
Автор

"The GUI tutorials should be short" I looked and there are 12 parts... LOL hard :D

TheChrois
Автор

I think the methods "calculateKingCastles" can be turned into a generic one. We can check whether the tiles in between are empty or attacked by accessing them considering the position of the king +1, +2, -1, -2, etc, and not writing 61, 62, etc. As I am a beginner I don't know exactly where I should add this generic method for a better design. In the abstract class Player so the whitePlayer and blackPlayer can inherit it?

razvancristea
Автор

i keep getting an error for the duplicates rookTiles

sadshonenkid
Автор

it doesnt look like you are checking for check when castling queenside

iansweeney
Автор

I don't see why you need the castleRookStart variable. First of all it's accesible by castleRook.getPosition() and secondly it's not needed. Also the castleRookDestination can be calculated by the new King's position - 1 for king side castle and + 1 for queen side castle. But maybe you did it that way for code readabilty. Anyway thanks a lot for this series. It's been a big help.

wauwaukleff