Ludii Forum
ArrayIndexOutOfBoundsException when removing cells - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Game Problems (https://ludii.games/forums/forumdisplay.php?fid=17)
+--- Thread: ArrayIndexOutOfBoundsException when removing cells (/showthread.php?tid=105)



ArrayIndexOutOfBoundsException when removing cells - ccxvii - 08-03-2020

I'm trying to make a board with a hole in the middle. Here's a small program that reproduces the crash:

(game "ArrayIndexOutOfBounds"
  (equipment { (board
    (remove
      (square (poly {{5 0}{0 5}{0 10}{5 15}{10 15}{15 10}{15 5}{10 0}}))
      cells:{82})
)}))


I also get an ArrayIndexOutOfBounds exception if using the "hole" primitive as well, like this:

(hole
  (square (poly {{5 0}{0 5}{0 10}{5 15}{10 15}{15 10}{15 5}{10 0}}))
  (poly {{7 7}{7 8}{8 8}{8 7}}))
)


RE: ArrayIndexOutOfBoundsException when removing cells - cambolbro - 08-11-2020

Hi,

That's now fixed in the latest release v1.0.2.

Regards,
Cameron