home *** CD-ROM | disk | FTP | other *** search
- SBP
- Γ e
- ¼ à
- ╦ e
- ┤ £"Game"
- ╫but$(16)
- ¢px% 1 q16
- cb$ "b" H( (px%,2,0)) "%"
- ex$ "but$(px%) = cb$:" cb$ "=px%"
- ûex$
- ▒px%
- òb16%
- Cp% 16
- win$ "If you can imagine it..." (13) (13) " Microsoft Database can do it..."
- £
- ╧ ¢2
- £2
- Start$ "NEW GAME":q$ "QUIT"
- StartGame:
- hit% 0
- ╧ ▀
- Ñ
- íhit%
- 1
- hit% 16 p
- ¥a$:a$ >(a$)
- ía$ "N"
- hit% 1 p
- ct% 0:moves$ ""
- wShuffle
- wStartGame
- Æ í
- ía$ "Q"
- hit% 2 p wEnditall Æ í
- wStartGame
- Æ í
- pos% (Cp% hit%)
- í((pos% 1)
- (pos% 4)) p
- í(pos% 1) p
- í( ((Cp% 1) 4) ((hit% 1) 4)) p
-
- wStartGame
- Æ í
- Æ í
- ex$ but$(Cp%) "=" but$(hit%)
- ûex$
- ct% ct% 1
- moves$ "No. of Moves:" (ct%,5,0)
- Cp% hit%
- vEraseButton
- £
- íCp% 16 p vCheckWin Æ í
- ^
-
- Æ í
- wStartGame
- Enditall:
- win$ "Thanks for 'playing'" (13) "with" (13) "Microsoft Database"
- £1
- Γ │: ╦ │
- Æ
- EndGame:
- hit% 0
- ╧ ▀
- Ñ
- ¥a$:a$ >(a$)
- ía$ "Q"
- a$ (27)
- hit% 2 p wEnditall
- ía$ "N"
- hit% 1 pmoves$ "":ct% 0: wShuffle Æ í
-
- wEndGame
- Shuffle:
- òa%
- ╫a%(16)
- ¢x% 1 q16
- ex$ "a%(x%)=" but$(x%)
- ûex$
- ▒x%
- ¢x% 1 q30
- S1:
- px% (16 (1) 1)
- ípx% Cp% p wS1
- fr% ((Cp% 1) 4)
- g% ((px% 1) 4)
- pos% (fr% g%)
- disp% (Cp% px%) { 4:4
- ╪pos% 0
- a%(Cp%) a%(Cp% disp%)
- Cp% Cp% disp%
- pos% pos% 1
- ┘
- pos% (Cp% px%)
- disp% (Cp% px%) { 1:1
- ╪pos% 0
- a%(Cp%) a%(Cp% disp%)
- Cp% Cp% disp%
- pos% pos% 1
- ┘
- ▒x%
- ¢x% 1 q16
- ex$ but$(x%) " = a%(x%)"
- ûex$
- ▒x%
- òa%
- vEraseButton
- £
- wStartGame
- EraseButton:
- cb$ but$(Cp%)
- ex$ cb$ "=0:erase " cb$
- ûex$
- ├
- QueryButton:
- ex$ "ret%=" but$(px%)
- ûex$
- ├
- CheckWin:
- ¢x% 15 q1 k 1
- ex$ "cb% =" but$(x%) "- x%"
- ûex$
- ícb% 0 px% 1
- ▒x%
- ícb% p ├
- win$ "You Won!!"
- £1
- ¢x% 1 q4
- win$ "You Won!!"
-
- £
- ╧ ¢.7
- win$ ""
- £
- ╧ ¢.3
- ▒x%
- moves$ "You Won in " H( (ct%,5,0)) " moves!"
- £2
- wEndGame
-
-
-