Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 75 print "do you want to play?"
  2. 80 input q$
  3. 85 if q$ = "no" then end
  4. 100 graphics 0
  5. 200 graphics pensetup 5,5
  6. 300 moveto 100,0 : lineto 100,300
  7. 400 moveto 200,0 : lineto 200,300
  8. 500 moveto 0,100 : lineto 300,100
  9. 600 moveto 0,200 : lineto 300,200
  10. 700 graphics button "O1",0,0,20,20,"MOVETO 50,50 : GRAPHICS CIRCLE 70 : let
  11. d=1"
  12. 800 graphics button "X1",20,0,20,20,"MOVETO 25,25 : LINETO 75,75 : MOVETO
  13. 75,25 : LINETO 25,75 : let d=2"
  14. 900 graphics button "O2",100,0,20,20,"MOVETO 150,50 : GRAPHICS CIRCLE 70 : let
  15. g=1"
  16. 1000 graphics button "X2",120,0,20,20,"MOVETO 125,25 : LINETO 175,75 : graphics
  17. MOVETO 175,25 : LINETO 125,75 : let g=2"
  18. 1100 graphics button "O3",200,0,20,20,"MOVETO 250,50 : GRAPHICS CIRCLE 70 :
  19. let a=1"
  20. 1200 graphics button "X3",220,0,20,20,"MOVETO 225,25 : LINETO 275,75 :
  21. GRAPHICS MOVETO 275,25 : LINETO 225,75 : let a=2"
  22. 1300 graphics button "O4",0,100,20,20,"MOVETO 50,150 : GRAPHICS CIRCLE 70 :
  23. let e=1"
  24. 1400 graphics button "X4",20,100,20,20,"MOVETO 25,125 : LINETO 75,175 : graphics
  25. moveto 75,125 : lineto 25,175 : let e=2"
  26. 1500 graphics button "O5",100,100,20,20,"MOVETO 150,150 : GRAPHICS CIRCLE
  27. 70 : let h=1"
  28. 1600 graphics button "X5",120,100,20,20,"MOVETO 125,125 : LINETO 175,175 :
  29. MOVETO 175,125 : LINETO 125,175 : let h=2"
  30. 1700 graphics button "O6",200,100,20,20,"MOVETO 250,150 : GRAPHICS CIRCLE
  31. 70 : let b=1"
  32. 1800 graphics button "X6",220,100,20,20,"MOVETO 225,125 : LINETO 275,175 :
  33. MOVETO 275,125 : LINETO 225,175 : let b=2"
  34. 1900 graphics button "O7",0,200,20,20,"MOVETO 50,250 : GRAPHICS CIRCLE 70 :
  35. let f=1"
  36. 2000 graphics button "X7",20,200,20,20,"MOVETO 25,225 : LINETO 75,275 :
  37. MOVETO 75,225
  38. : lineto 25,275 : let f=2"
  39. 2100 graphics button "O9",100,200,20,20,"MOVETO 150,250 : GRAPHICS CIRCLE
  40. 70 : let i=1"
  41. 2200 graphics button "X9",120,200,20,20,"MOVETO 125,225 : LINETO 175,275 :
  42. MOVETO 175,225 : LINETO 125,275 : let i=2"
  43. 2300 graphics button "O0",200,200,20,20,"MOVETO 250,250 : GRAPHICS CIRCLE
  44. 70: LET c=1"
  45. 2400 graphics button "X0",220,200,20,20,"MOVETO 225,225 : LINETO 275,275 :
  46. MOVETO 275,225 : LINETO 225,275 : let c=2"
  47. 2500 if a = 1 and b = 1 and c = 1 then graphics moveto 250,50 : lineto 250,250 : let w$
  48. = "O"
  49.  
  50. 2510 if a = 2 and b = 2 and c = 2 then graphics moveto 250,50 : lineto 250,250 : let w$
  51. = "X"
  52. 2520 if d = 1 and e = 1 and f = 1 then graphics moveto 50,50 : lineto 50,250 : let w$
  53. = "O"
  54. 2530 if d = 2 and e = 2 and f = 2 then graphics moveto 50,50 : lineto 50,250 : let w$
  55. = "X"
  56. 2540 if g = 1 and h = 1 and i = 1 then graphics moveto 150,50 : lineto 150,250 : let w$
  57. = "O"
  58. 2550 if g = 2 and h = 2 and i = 2 then graphics moveto 150,50 : lineto 150,250 : let w$
  59. = "X"
  60. 2560 if d = 1 and g = 1 and a = 1 then graphics moveto 50,50 : lineto 250,50 : let w$
  61. = "O"
  62. 2570 if d = 2 and g = 2 and a = 2 then graphics moveto 50,50 : lineto 250,50 : let w$
  63. = "X"
  64. 2580 if e = 1 and h = 1 and b = 1 then graphics moveto 50,150 : lineto 250,150 : let w$
  65. = "O"
  66. 2590 if e = 2 and h = 2 and b = 2 then graphics moveto 50,150 : lineto 250,150 : let w$
  67. = "X"
  68. 2600 if f = 1 and i = 1 and c = 1 then graphics moveto 50,250 : lineto 250,250 : let w$
  69. = "O"
  70. 2610 if f = 2 and i = 2 and c = 2 then graphics moveto 50,250 : lineto 250,250 : let w$
  71. = "X"
  72. 2620 if d = 1 and h = 1 and c = 1 then graphics moveto 50,50 : lineto 250,250 : let w$
  73. = "O"
  74. 2630 if d = 2 and h = 2 and c = 2 then graphics moveto 50,50 : lineto 250,250 : let w$
  75. = "X"
  76. 2640 if a = 1 and h = 1 and f = 1 then graphics moveto 50,250 : lineto 250,50 : let w$
  77. = "O"
  78. 2650 if a = 2 and h = 2 and f = 2 then graphics moveto 50,250 : lineto 250,50 : let w$
  79. = "X"
  80. 2660 if w$ = "X" or w$ = "O" then 3500
  81. 2700 print "Type DONE when you are done with your turn and END when you want to
  82. end"
  83. 2800 input t$
  84. 2900 if t$ = "DONE" then 2500
  85. 3000 if t$ = "END" then end
  86. 3500 print "The ";w$;"'s Win!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement