Problem 45239. Checkmate-02

This is an extension of the problem

If the king is in check, examine the next move of the king. List all those possible moves by which king can avoid the check by the next move.

Otherwise 'checkmate'.

  • r = king's location
  • p = position of opponent's pieces
  • if the king is currently not in check, then he doesn't need to move. so return empty.
  • for simplicity, assume that the king cannot take out opponent's pieces.

Solution Stats

25.0% Correct | 75.0% Incorrect
Last Solution submitted on Dec 30, 2019

Problem Comments

Problem Recent Solvers3

Suggested Problems

More from this Author64

Problem Tags