Chess is one of the greatest strategy game of all times that has been around for over 5000 years. It is appealing for millions of players around the world and it was also an inspiration for us to come up with interesting coding challenges!
You will see your tasks in a moment. Solve first 3 tasks and one selected task above 100 points. Then answer questions in the point 10.
You don't know the rules! No worries here's the brief summary below (you only need to understand moves of several pieces to solve our challenges!). When you're ready go ahead and solve some problems!
Rules of chess in a brief
Chess is played on 8x8 square board by 2 players - one controlling white pieces, other controlling black pieces. White moves first, then players alternate moves. Each type of chess piece has its own method of movement. A piece moves to a vacant square except when capturing an opponent's piece.
- The king moves exactly one square horizontally, vertically, or diagonally. A king is in check when it is under attack by at least one enemy piece. If checked the only acceptable move is to defend (by escaping or moving another piece in a way so that king is no longer captured). If you have no move to defend than you lost a game and that's called a checkmate !
- The queen moves any number of vacant squares in a horizontal, vertical, or diagonal direction.
- A bishop moves any number of vacant squares in any diagonal direction.
- A rook (also called castle) moves any number of vacant squares in a horizontal or vertical direction. It also is moved when castling but for the sake of our problems you may not consider castling move. You may disregard castling move as this will not be used in our testing problems.
Knights and pawns have the most complex rules of movement and capturing. For the sake of simplifying our problems we are not going to use those pieces in our testing data.
For more details click the button 'I want to participate', then 'Show details'. Find out more about hackathons in our hackathon section.