Simulating captured pieces

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Simulating captured pieces

Post by Klaus » Tue Jan 06, 2015 7:39 pm

Mokima wrote:Yes, Fanorona_board[currentX][currentY][name_] should at some point become Black Piece.png.
But obviously doesn't :D

Try to add an "emergency exit" to your loop like this:

Code: Select all

...
repeat until...
   if the shiftkey = "down" then
     exit repeat
   end if
...
Then hit the SHIFT key when LC is not reponding and with a lillte luck, LC will "revive" again.
If that is the case that is a hint that you are stuck in the loop (of death).

Mokima
Posts: 10
Joined: Tue Dec 30, 2014 8:08 pm

Re: Simulating captured pieces

Post by Mokima » Tue Jan 06, 2015 8:29 pm

I tried out what you said, and it worked, so the program is getting stuck in the repeat loop. Thanks for your help Klaus!

Post Reply

Return to “Games”