I coded chess in Java and this is how I did it.
It looked simple enough but boy, it was much more complicated than I thought! I was surprised at how much you can learn by coding this little old game.
You can download the chess piece images in the video from here:
https://ryisnow.itch.io/pixel-art-che…
About Game Loop:
• Game Loop and Key Input – How to Make…
Thanks for watching!
Timestamps:
0:00:00 Introduction
0:01:08 Window
0:04:03 Game Loop
0:07:15 Drawing the Chessboard
0:12:17 Drawing Pieces
0:24:36 Moving Pieces
0:37:20 Setting Each Piece’s Movement Rules
0:38:04 King
0:54:06 Knight
0:56:15 Rook
1:03:00 Bishop
1:08:35 Queen
1:10:52 Pawn
1:17:18 Changing Turns
1:20:43 Castling
1:29:28 En Passant
1:36:36 Promotion
1:44:51 Illegal Movement
1:48:28 Detecting Check
1:53:50 Another Illegal Movement
1:55:58 Detecting Checkmate
2:12:03 Detecting Stalemate
#gamedev #javatutorial #programming
Sobre
This is a Java tutorial channel but occasionally I upload other stuff too. I consider myself a mediocre programmer but I’m trying to get better and this channel has become a place that records my progress (you can see how noob I was if you watch my first video!).
Guidelines for using Blue Boy Adventure’s code and assets:
https://docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/edit
If you feel generous and don’t mind to give some extra support to this channel:
https://ko-fi.com/ryisnow
Links
Ko-fi
ko-fi.com/ryisnow
Twitter (X)
twitter.com/RyiSnow2017
Bluesky
bsky.app/profile/ryisnow.bsky.social
Detalhes do canal
Faça login para ver este endereço de e-mail
www.youtube.com/@RyiSnow
Japão
Inscreveu-se em 17 de mar. de 2016
35,5 mil inscritos
357 vídeos
5.889.871 visualizações
Compartilhar canal