## Construct a Matrix whose sum of diagonals for each square submatrix is even

Given an integer N, the task is to construct a matrix M[][] of size N x N with numbers in range [1, N^2], such that… Read More »

- Puzzle | Can a Knight reach bottom from top by visiting all squares
- Puzzle | Minimum colors required to color a chessboard with no two given pair threatening each other
- Number of ways to place two queens on a N*N chess-board
- Draw a Chess Board using Graphics Programming in C
- Check if any King is unsafe on the Chessboard or not
- Construct a Matrix whose sum of diagonals for each square submatrix is even
- N-Queen Problem | Local Search using Hill climbing with random neighbour
- Count of ways to traverse a Matrix according to given conditions
- Find position of non-attacking Rooks in lexicographic order that can be placed on N*N chessboard

Given an integer N, the task is to construct a matrix M[][] of size N x N with numbers in range [1, N^2], such that… Read More »

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 »

Given a matrix board[][] consisting of the characters K or k, Q or q, B or b, N or n, R or r, and P… Read More »

Given an integer N and an array arr[] of positions which denotes the positions of already placed non-attacking rooks, the task is to find the… Read More »

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 a 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 »