Original Post
Would I need an algoritm to save all positions, that has to be stated to simulate a chessboard or a checker game..? I seem to come to my limit in mathematical intelligence =o] I have the fallowing positions on the board that the pieces HAS to be placed on: Row - Col ..1.......2 ..1.......4 ..1.......6 ..1.......8 ..2.......1 ..2.......3 ..2.......5 ..2.......7 ..3.......2 ..3.......4 ..3.......6 ..3.......8 ..6.......2 ..6.......4 ..6.......6 ..6.......8 ..7.......1 ..7.......3 ..7.......5 ..7.......7 ..8.......2 ..8.......4 ..8.......6 ..8.......8 Those numbers would placed the pieces like the picture shows: http://mcvey.files.wordpress.com/2007/01/checkers.jpg But instead of making 64 lines of code with almost identical coding, with the changes of the numbers. I could use a loop of some sort but I cant seem to find the algoritm or whatever you might call it, to solve this problem. Spent last two days with this problem and I just cant seem to figure out what I have to do. Any ideas or keywords I should look for when figuring this out?