03-09-2021, 07:59 PM
I (think I) have implemented Mihaw's Lelac, but there are 2 major problems with the file:
1: The game starts with a random value between 1 and 6 at the centre cell, and every time one makes a move this changes randomly. When the initial random value is 6, I get the message "Index 6 out of bounds for length 6", and I am unable to make a move. What does this mean?
2: After about 3 moves the game freezes and I am unable to make a move. Why?
I have attached the file.
1: The game starts with a random value between 1 and 6 at the centre cell, and every time one makes a move this changes randomly. When the initial random value is 6, I get the message "Index 6 out of bounds for length 6", and I am unable to make a move. What does this mean?
2: After about 3 moves the game freezes and I am unable to make a move. Why?
I have attached the file.