Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or not.

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

Solution Stats

37 Solutions

16 Solvers

Last Solution submitted on Jan 23, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers16

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

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

Start Hunting!