Problem 45332. Castling-03

Given the position of different chess pieces on the chessboard, figure out whether castling is valid or not in the next move (white king).

  • a=position of white pieces
  • b=position of black pieces

https://en.wikipedia.org/wiki/Castling

Previous problem https://www.mathworks.com/matlabcentral/cody/problems/45330-castling-02#

Solution Stats

90.0% Correct | 10.0% Incorrect
Last Solution submitted on Apr 22, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers7

Suggested Problems

More from this Author165

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!