Java Chess Programming Video #37 The GUI (Part IX)

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

Chess Code Repository :

IDE:

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

Lol I had to debug this errors by myself when my pieces didn't move couple of videos ago. I thought maybe I missed something. Now all of this come into its place! It's so satisfying to see you make the same changes I did! Great series, thank you so much! BTW as for me, it is better to see live changes in code, than when you code off cam and then show us the result which is harder to keep track on.

baetz
Автор

Yay! I'm so close to complete the GUI part. Thanks for amazing tutorials.

ankurg_
Автор

The Problem is you return int value in getCoordinateAtPosition , and the array ALGEBRIC_NOTATION is String, cheers <3.

tiestoLouver
Автор

Hi, I am not able to make Bishops capture pieces, not sure if there is a bug. Please let me know.

pb-
Автор

Your tutorial is awesome.
I just want to thank you for that, and I hope you can bring some more tutorials for us.

ismaelbies
Автор

Hi Amir,
Shouldn't the + be - in this pawn code? :
final int behindDestinationPosition = destinationPosition + * 8);

SrikarKrishna
Автор

Would anyone answer my question PLEASE :(
I don't understand how is "isFirstMove" false after the first move is done?
I mean, we don't set it to false again anywhere, and when we call the "movePiece" method we use the first constructor:
return new Pawn(move.getMovedPiece().getPieceAllegiance(),

which sets it to true:

public Pawn(final Alliance allegiance,
final int piecePosition) {
super(PieceType.PAWN, allegiance, piecePosition, TRUE);
}

I'm a bit confused.. :/

Thanks!

m_r.o
Автор

+Amir Afghani the Pawn is taking the other pieces, but the others pieces don't do that. For example: The Rook can't take the a Pawn.
How can I fix that?
Thank you!
By the way, Great Job!

brunomaam
Автор

I lost the connection between this video and subsequent ones, and have problems with the BourdUtils class. Please help me almost completely with zero knowledge. The complexity of such a project was interesting.

rafaelaslanyan
Автор

hmm i just realised the second constructor for pawn is never used. If you pay close attention to the implementation of calculateLegalMoves() in Pawn class, you can see the the even if the value of isFirstMove remained true after the first move, it doesn't really affect the pawn's legal move. Do you think we can just get rid of it (same for the second constructor of knight and bishop)?

hayden
Автор

+Amir Afghani how are you?
When is the next video, I'm anxious, your videos are great. What happened? You disappeared.

brunomaam
Автор

Hey Amir, just want to tell you that you spelt "ALGEBREIC" but it is "ALGEBRAIC", the 'a' is suppose to come instead of the 'e', just wanted to tell you the spelling error, eventhough it is not going to affect the logic of the program :)

elvissilva