## Count the total number of squares that can be visited by Bishop in one move

Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be… Read More »

## Check whether Bishop can take down Pawn or not

Given the position of a Bishop and a Pawn on a 8 * 8 chessboard, the task is to check whether the Bishop can take… Read More »

## Total position where king can reach on a chessboard in exactly M moves

Given an integer M, an 8 * 8 chessboard and the king is placed on one of the square of the chessboard. Let the coordinate… Read More »

## Maximum bishops that can be placed on N*N chessboard

Given an integer n, the task is to print the maximum number of bishops that can be placed on a n x n chessboard so… Read More »

## Minimum number of moves required to reach the destination by the king in a chess board

Given four integers sourceX, sourceY, destinationX and destinationY which represent the source and destination coordinates on a chessboard. The task is to find the minimum… Read More »

## Number of blocks in a chessboard a knight can move to in exactly k moves

Given integers i, j, k and n where (i, j) is the initial position of the Knight on a n * n chessboard, the task… Read More »

## Place K-knights such that they do not attack each other

Given integers M, N and K, the task is to place K knights on an M*N chessboard such that they don’t attack each other. The… Read More »

## Check if the given chessboard is valid or not

Given a NXN chessboard. The task is to check if the given chessboard is valid or not. A chess board is considered valid if every… Read More »

## Minimum steps to reach target by a Knight | Set 2

Given a square chessboard of N x N size, the position of Knight and position of a target is given, the task is to find… Read More »

## N Queen in O(n) space

Given n, of a n x n chessboard, find the proper placement of queens on chessboard. Previous Approach : N Queen Recommended: Please try your… Read More »

## Possible moves of knight

Given a chess board of dimension m * n. Find number of possible moves where knight can be moved on a chessboard from given position.… Read More »

## Number of cells a queen can move with obstacles on the chessborad

Consider a N X N chessboard with a Queen and K obstacles. The Queen cannot pass through obstacles. Given the position (x, y) of Queen,… Read More »

## Warnsdorff’s algorithm for Knight’s tour problem

Problem : A knight is placed on the first block of an empty board and, moving according to the rules of chess, must visit each… Read More »

## Minimum steps to reach target by a Knight | Set 1

Given a square chessboard of N x N size, the position of Knight and position of a target is given. We need to find out… Read More »

## Printing all solutions in N-Queen Problem

The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example,… Read More »