Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total=0
- moves=0
- tries=0
- Gui, Font, s12
- Gui, Add, Text, x12 y9 w70 h20 , 121004
- Gui, Add, Edit, x11 y29 w80 h22 vtotal, 0
- Gui, Add, Button, x12 y59 w70 h30 gA29, +29
- Gui, Add, Button, x92 y59 w70 h30 gD3, /3
- Gui, Add, Button, x12 y99 w70 h30 gT4, *4
- Gui, Add, Button, x92 y99 w70 h30 gM58, -58
- Gui, Add, Button, x12 y139 w70 h30 gM12, -12
- Gui, Add, Button, x92 y139 w70 h30 gA92, +92
- Gui, Add, Button, x42 y199 w100 h30 greset, Reset
- Gui, Add, Text, x102 y9 w80 h20 vmoves %moves%,Moves 0
- Gui, Add, Text, x102 y29 w80 h20 vtries %tries%,Tries 0
- Gui, Show, x733 y365 h244 w180, Math Puzzel 1
- Return
- GuiClose:
- ExitApp
- A29:
- total+=29
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- D3:
- if total = 0
- {
- msgbox, Do you know how math works lol
- }
- total/=3
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- T4:
- if total = 0
- {
- msgbox, Do you know how math works lol
- }
- total*=4
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- M58:
- total-=58
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- M12:
- total-=12
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- A92:
- total+=92
- GuiControl,, total, %total%
- moves++
- GuiControl,, moves,Moves %moves%
- goto wincheck
- Return
- reset:
- tries++
- total=0
- moves=0
- GuiControl,, moves,Moves 0
- GuiControl,, total,0
- GuiControl,, tries,tries %tries%
- Return
- wincheck:
- score:=tries / moves
- if total = 121004
- {
- Msgbox, YOU GOT IT!!!`n`nTRIES=%tries%`n`nMOVES=%moves%`n`nSCORE=%score%
- if moves = 17
- {
- msgbox, Greats you got the least amount of moves possible
- }
- else
- {
- msgbox, FYI there is a smaller amount of moves to win!!
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement