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.
the way u can win the game is to move ur piece towards ur opponent's, from left to right, if there is no pieces that u can move, u failed. So we find first piece that can move towards opponent's, if not, find first piece that can move and move it.
This is a way but hard to achieve.
Maybe there is a better way that allow us not to move the piece.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Vertical Rooks
You are viewing a single comment's thread. Return to all comments →
the way u can win the game is to move ur piece towards ur opponent's, from left to right, if there is no pieces that u can move, u failed. So we find first piece that can move towards opponent's, if not, find first piece that can move and move it. This is a way but hard to achieve. Maybe there is a better way that allow us not to move the piece.