In my game when the player runs out of moves before using all of the game pieces the game is over. The problem I’m having is when there are still game pieces, the moves requires me to click to -1 moves before it shows the game over. In other words I see the 0 and nothing happens until I make one more moves (-1)
Below is my code.
Question: What do I need to do to get it to make the transition at 0 instead of -1?
function determineMoves()
if availableMoves >0 then
– print (“Still Have Moves – Check Remaining Game Play Pieces for Level Completion.”)
– print (“If player has Game Pieces then Game Play Continues”)
activeGame() – activeGame will check for remaining game balls
else
– print("…No Moves
noGamePieces() – no remaining game pieces this checks for remaining balls
end
return true
end
Thanks
Lori