Java Chess Programming Video #28 The Move (Part VIII)

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

Chess Code Repository :

IDE:

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

Hi Amir, thank you for these absolutely wonderful videos. I love the way
you present it, especially when you fix mistakes. You have an excellent clear
voice. Just a pity that your chess project does not work, not on my computer. I think
it might have to do with the different platforms that you and I work on. I’m new
to Java. I’ll give it another try, later, maybe next year. Please don’t think
that I’m computer naive, I first worked on an IBM mainframe 54 years ago in 1963
when I was 19 years old, with punch cards, it had no screen nor keyboard. Thank
you, once again, I think you’re a genius.

Zuikerboschkop
Автор

your videos are very easy to follow i dont even need to watch the video screen i just listen your voice and type the code .

Gurdeepsingh-qfis
Автор

ive always watched your videos in fullscreen and font size was just fine

RUFFRIDE
Автор

I can't wait to see the GUI part in action =))

quangnguyennhat
Автор

I am the 100th like! Keep up the great content!

depressedsmile
Автор

"no enclosing instance of type is in scope" i have this problem when im trying to extend a castleMove class to KingSideCastleMove becouse castlemove is not static

hem
Автор

finally the font got a bit bigger xD
amazing lesson as always! thanks alot!

miro_alm
Автор

If we didn't use Guava, how can we replace
this.legalMoves = ImmutableList.copyof(Iterables.concat(LegalMoves, calculateKingCastles(legalMoves, opponentMoves)))
from class Player, line 30? (3:03 is the minute you wrote it). Thank you so much!

ygrekygrek
Автор

There is a bug in the method disambiguationFile() in the class Move. It doesn't check for 2 pieces occupying the same column. Here is a possible solution.
public String disambiguationFile()
{
for(final Move move :
{
== destinationCoordinate &&
!this.equals(move) &&

{
if(BoardUtils.INSTANCE.getPositionAtCoordinate(movedPiece.getPiecePosition()).substring(0, 1)
.equals(BoardUtils.INSTANCE.getPositionAtCoordinate(destinationCoordinate).substring(0, 1)))
{
column.
BoardUtils.INSTANCE.getPositionAtCoordinate(movedPiece.getPiecePosition()).substring(1, 2);
}
else
{
rank.
BoardUtils.INSTANCE.getPositionAtCoordinate(movedPiece.getPiecePosition()).substring(0, 1);
}
}
}
return "";
}

gerryderop
Автор

This might be a stupid question but why are we only checking for possible attacks on squares we travel over for the king side castling moves? Shouldn't we also do this for the queen side castling moves too?

anonymous
Автор

sir please can you upload one video after the player to check moves of pieces in command promote please

dheerajagrawal
visit shbcf.ru