rek rek

rek rek

  • NA
  • 1
  • 0

help with C

Aug 27 2007 7:43 AM
hi geys i need ur help in C programing language to solve this problem :

Consider an 8x8 board of squares (like a chess board). I have 8 wooden pieces, four in the form of a male figure and 4 in the form of a female figure. The objective is to place these pieces on the board, with the following constraints.

a) There is at most one piece in any column and also in any row.

b) If there is a male piece on any row, its adjacent rows should not contain any male piece. Similarly for female pieces.

c) The same holds for columns also.

d) No two male pieces in any diagonal. Similar for female pieces also. It is ok to have a male piece and a female piece in the same diagonal.

implement a C program to solve this problem

No specific inputs need to be taken at run time. Output any solution found in the form of a board configuration. If there are no solutions, output “no solutions”.


plz help me i need the coding for this problem


Answers (1)