Hello Everyone!
a friend told me about this chess riddle. I would like to share it with you (I figured that some of you might like this kind of stuff):
on a standard 8x8 chessboard, you have to place eight black pons (or 8 any other pieces for a matter of fact).
you have to place them, on black or white squares, so that they are not in a line.
ie:: no 2 (or more) pieces can be in a line horizontally
no 2 (or more) pieces can be in a line vertically
no 2 (or more) pieces can be in any form of diagonal line
now I managed to get 7 out of 8 pieces plcaed by using the traditional method (thinking)... I figured -> no problem: I'll just fire up my Visual Studio and I'll write a C program that goes through all the combinations and will be done in a few hours. hmm... easier said then done.
I would like to propose this mini challange to you guys. Write a C program that goes through all the possible combinations until it finds the right anwser. I'm sure that for most of you this will be a piece of cake, but some might find this challenging or even fun...
so give it a shot and let me know how you did,
matt
PS> i said to write it in C because i assumed that C will be the fastest. you are welcome to write it in any other program