priyagunjate / chess-game-rook-and-pawn Goto Github PK
View Code? Open in Web Editor NEWWrite a python program to do the following: Given the location of a rook(x1, y1) on a chess board and location of a pawn (x2,y2). Find the minimum number of moves it will take for the rook to kill the pawn. Please bear in mind that 1. it is an 8x8 board 2. There are no other pieces on the board.