S
streamkid
Hello...
i have a two dimensional array of ints,
int board[ 8 ][ 8 ];
when i try to set each element, like that
board[ 7 ][ 7 ] = { blcaslte, blhorse, blbishop, blking, blqueen,
blbishop, blhorse, blcastle,
blpawn, blpawn, blpawn, blpawn, blpawn, blpawn,
blpawn, blpawn,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
whpawn, whpawn, whpawn, whpawn, whpawn, whpawn,
whpawn, whpawn,
wcastle, whorse, wbishop, wking, wqueen,
wbishop, whhorse, whcastle };
ofc i have enums,
enum pieces { blcaste = 1, blhorse = 2, blbishop = 3, blking = 4,
blqueen = 5, blppawn = 6,
whcaslte = 7, whhorse = 8, whbishop = 9, whqueen = 10,
whking = 11, whpawn = 12,
null = 0 };
but i also tried with this
const int blcaste = 1;
const int blhorse = 2;
etc..
but this didn't work either..
any idea anybodi??
i have a two dimensional array of ints,
int board[ 8 ][ 8 ];
when i try to set each element, like that
board[ 7 ][ 7 ] = { blcaslte, blhorse, blbishop, blking, blqueen,
blbishop, blhorse, blcastle,
blpawn, blpawn, blpawn, blpawn, blpawn, blpawn,
blpawn, blpawn,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
whpawn, whpawn, whpawn, whpawn, whpawn, whpawn,
whpawn, whpawn,
wcastle, whorse, wbishop, wking, wqueen,
wbishop, whhorse, whcastle };
ofc i have enums,
enum pieces { blcaste = 1, blhorse = 2, blbishop = 3, blking = 4,
blqueen = 5, blppawn = 6,
whcaslte = 7, whhorse = 8, whbishop = 9, whqueen = 10,
whking = 11, whpawn = 12,
null = 0 };
but i also tried with this
const int blcaste = 1;
const int blhorse = 2;
etc..
but this didn't work either..
any idea anybodi??