On opencard
OMath Open without Menu    44 , 49 , 461, 341
--OMath Open
OMath Menu Grid 32
OMath NoSave
 if game_on is not 1 then
  play bokuwo
   put 5 into ntx
   naratoranimex
 end if

  put 101 into presentcard
put 0 into init101

End Opencard




On move_object
OMath Menu Move
end move_object

On find_length
OMath Menu Length
End find_length

On find_angle
OMath Menu AngleSize
End find_angle

On Cancellation
OMath Menu Undo
End Cancellation







On GameStart

put random(19) into rdm

if rdm = 1 then
 QuizDlg2 "How many vertexes do you find in each figure?",1, 2, 3, 4, 3
end if

if rdm = 2 then
 QuizDlg2 "How many sides do you find in each figure?",1, 2, 3, 4, 3
end if

if rdm = 3 then
 QuizDlg2 "Red triangle always has a right angle.",Yes, No, , , 2
end if

if rdm = 4 then
 QuizDlg2 "Green triangle always has a right angle.",Yes, No, , , 1
end if

if rdm = 5 then
 QuizDlg2 "Yellow triangle always has a right angle.",Yes, No, , , 2
end if

if rdm = 6 then
 QuizDlg2 "Yellow triangle always has two sides of equal length.",Yes, No, , , 1
end if

if rdm = 7 then
 QuizDlg2 "Green triangle always has two sides of equal length.",Yes, No, , , 2
end if
if rdm = 8 then
 QuizDlg2 "Red triangle always has two sides of equal length.",Yes, No, , , 2
end if

if rdm = 9 then
 QuizDlg2 "Red triangle is a right triangle.",Yes, No, , , 2
end if


if rdm = 10 then
 QuizDlg2 "Red triangle is a isosceles triangle.",Yes, No, , , 2
end if

if rdm = 11 then
 QuizDlg2 "An isosceles triangle always has two angles of equal size.",Yes, No, , , 1
end if

if rdm = 12 then
 QuizDlg2 "An equilateral triangle always has three angles of equal size.",Yes, No, , ,1
end if

if rdm = 13 then
 QuizDlg4 "If the angle EDF is 45 degree, then the angle DFE will be __degree",45
end if

if rdm = 14 then
 QuizDlg4 "If the angle EDF is 30 degree, then the angle DFE will be __degree",60
end if

if rdm = 15 then
 QuizDlg4 "If the angle EDF is 60 degree, then the angle DFE will be __degree",30
end if

if rdm = 16 then
 QuizDlg4 "If the angle GHI is 60 degree, then the angle GIH will be __degree",60
end if

if rdm = 17 then
 QuizDlg4 "If the angle GHI is 60 degree, then the angle HGI will be __degree",60
end if


if rdm = 18 then
 QuizDlg4 "If the angle GHI is 45 degree, then the angle HGI will be __degree",90
end if

if rdm = 19 then
 QuizDlg4 "If the length GH is 4cm, then the length GI will be __cm",4
end if



      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit
  if math_answer is not 1 then
       if math_answer is  -1 then
          play  uhoh2


          exit GameStart
       else
              play jawharp
          showwitch_surprised
      end if

   else
           play good
           show_frog_good


 

  end if


End Gamestart





