Cody

Problem 45240. Can the knight take out the pawn?

  • position of knight = k
  • position of pawns = p

can the knight take out those pawns?

  • k='Nf4'
  • p={'g6','g7'}

then output should be [1,0]

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Dec 26, 2019