home *** CD-ROM | disk | FTP | other *** search
- on CorrecttheMixture
- global gMasterMoves, gDifficultyLevel, gGameState, gGameSol, gHostSoundQueue
- theComment = EMPTY
- repeat with i = 1 to 3
- theFruit = value(char i of item 4 of gGameSol)
- if item theFruit of gGameState <> item theFruit of gGameSol then
- theComment = "57413" & string(theFruit)
- exit repeat
- end if
- end repeat
- theMixture = gMasterMoves
- case gDifficultyLevel of
- 1:
- if theComment <> EMPTY then
- put theComment into item 1 of theMixture
- end if
- 2:
- if theComment <> EMPTY then
- put theComment & "," before theComment
- repeat with i = 1 to 3
- delete item 2 of theMixture
- end repeat
- end if
- 3:
- if theComment <> EMPTY then
- put theComment & "," before theComment
- end if
- end case
- sound stop 2
- gHostSoundQueue = theMixture
- end
-