Skip to content

Tag Archives: chessboard-problems

Puzzle: For each of the following chess pieces, find the minimum number of colors needed to color an N x N chessboard, such that no… Read More
Prerequisite: graphics.h, How to include graphics.h in CodeBlocks? In Computer Graphics, we use graphics.h which provide direct functions to draw different coordinate shapes(like circle, rectangle… Read More
Given an integer N denoting a N * N chess-board, the task is to count the number of ways to place two queens on the… Read More
Puzzle Is there a way for a chess knight to start at the top-left corner from a N x N chessboard, visit all the squares… Read More
Given an integer N which represents an N x N Square Matrix, the task is to print the number of ways to move from top… Read More
Given an N*M chessboard. The task is to find the maximum number of knights that can be placed on the given chessboard such that no… Read More
Given the position of the king on an 8 X 8 chessboard, the task is to count the total number of squares that can be… Read More
Given the position of the queen (qX, qY) and the opponent (oX, oY) on a chessboard. The task is to determine whether the queen can… Read More
There is an 8*8 chessboard and two chess players having a single pawn each. A player has to move his pawn in each turn, either… Read More
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
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
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
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
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
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

Start Your Coding Journey Now!