{"id":434,"date":"2026-03-27T13:24:54","date_gmt":"2026-03-27T13:24:54","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/k_rai\/?p=434"},"modified":"2026-03-27T13:24:54","modified_gmt":"2026-03-27T13:24:54","slug":"chessboard-03-20-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/k_rai\/2026\/03\/27\/chessboard-03-20-26\/","title":{"rendered":"Chessboard  03\/20\/26"},"content":{"rendered":"\n<p>Today I decided to continue to work on my chessboard <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"714\" src=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-3-1024x714.png\" alt=\"\" class=\"wp-image-436\" srcset=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-3-1024x714.png 1024w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-3-300x209.png 300w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-3-768x535.png 768w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-3.png 1027w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This whole section of this code is Responsible for each of the piece on the board  by having their own individual classes <\/p>\n\n\n\n<p>Each piece is on their standard place and with their apporiate color belonging to that piece<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"227\" src=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-4.png\" alt=\"\" class=\"wp-image-437\" srcset=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-4.png 1004w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-4-300x68.png 300w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2026\/03\/chess-4-768x174.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/figure>\n\n\n\n<p>This code is responsible for handling the moves of the pieces <\/p>\n\n\n\n<p>The code defines the move Piece to see if the move\/ rule is being met <\/p>\n\n\n\n<p>The code moves the pieces based on their start and end position <\/p>\n\n\n\n<p>where if the chess moves the code checks if the rules are being follwed <\/p>\n\n\n\n<p>The board = null is stands for nothing so when you have to change the code you could change it without breaking the code<\/p>\n\n\n\n<figure class=\"wp-block-video\"><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I decided to continue to work on my chessboard This whole section of this code is Responsible for each of the piece on the board by having their own individual classes Each piece is on their standard place and with their apporiate color belonging to that piece This code is responsible for handling the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":435,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":438,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/434\/revisions\/438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/media\/435"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}