We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I believe the castle being a chess piece which is allowed to move either horizontal or vertical. But the dynamic grid doesn't recall a chessboard on the other hand =) the better proposition here is to state that the grid is always 8x8 and to amend addressing of the cells to fit chess alphanumeric manner.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Castle on the Grid
You are viewing a single comment's thread. Return to all comments →
I believe the castle being a chess piece which is allowed to move either horizontal or vertical. But the dynamic grid doesn't recall a chessboard on the other hand =) the better proposition here is to state that the grid is always 8x8 and to amend addressing of the cells to fit chess alphanumeric manner.