Posted: 22nd Nov 2010 13:00
Hello,
I'm using "DarkBasic pro game programming second edition" book for information, i reached chap 9 the imageShuffle program, i want to ask about the code of this program at P.206, the are a group of numbers at first, so what do they represent? the book says "tile position data for calculating valid moves" but i can't understand what the numbers mean
‘ Tile position data for calculating valid moves
DATA 2,5,0,0
DATA 1,3,6,0
DATA 2,4,7,0
DATA 3,8,0,0
DATA 1,6,9,0
DATA 2,5,7,10
DATA 3,6,8,11
DATA 4,7,12,0
DATA 5,10,13,0
DATA 6,9,11,14
DATA 7,10,12,15
DATA 8,11,16,0
DATA 9,14,0,0
DATA 13,10,15,0
DATA 14,16,11,0
DATA 12,15,0,0