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
Problem Comments
Solution Comments
Show commentsGroup

Chess
- 18 Problems
- 4 Finishers
- Count the peaceful queens
- Valid Chess Moves
- The Dark Knight
- Knight's Watch
- N-Queens Checker
- Knight's Tour Checker
- Eight Queens Solution Checker
- Queen's move
- Queen's move - 02
- Checkmate
- Checkmate-02
- Can the knight take out the pawn?
- Castling-01
- Castling-02
- Castling-03
- chess position
- En passant - 01
- King's Cage
Problem Recent Solvers12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!