Array Index out of bounds.

Community Forums/Monkey Talk/Array Index out of bounds.

Paul "Taiphoz"(Posted 2011) [#1]
Ah the beloved error I bet we all love so much.

My situation is this, my AI profiles my game board, weights each possible tile with a value depending on how good a move it is, and once this is done it selects the best move, or a random move from a list of best possible moves.

Trouble is I have now had 2 Out of Bound exceptions, and I have no clue why, it's also damn hard to replicate, I played about 20 games on Easy, Medium and hard without issue, then 1 game later after 60 in a row I got twanged.

anyone got any tips of tracking them down ? not an issue iv had with other BRL products as the debugger normally helps and the every handy debugstop and log.

anyway. let me know.

Also what exactly happens on the mobile end when this happens, currently testing coding my game with the demo so only know what Html5 does when it breaks, is this something a mobile can recover from or is it a crash and explode ?


Paul "Taiphoz"(Posted 2011) [#2]
never mind, got a bit crazy with the Print statement and tracked it down.