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(21) into rdm

if rdm = 1 then
 QuizDlg2 "How many vertexes are there in each figure?",1, 2, 3, 4, 4
end if

if rdm = 2 then
 QuizDlg2 "How many sides are there in each figure?",1, 2, 3, 4, 4
end if

if rdm = 3 then
 QuizDlg2 "The green quadrangle always has four right angles and four sides of equal length.",Yes, No, , , 2
end if

if rdm = 4 then
 QuizDlg2 "The grey quadrangle is  a rectangle.",Yes, No, , , 1
end if

if rdm = 5 then
 QuizDlg2 "The yellow quadrangle always has four right angles and four sides of equal length.",Yes, No, , , 2
end if



if rdm = 6 then
 QuizDlg2 "The grey quadrangle always has four right angles and opposite sides of equal length.",Yes, No, , , 1
end if

if rdm = 7 then
 QuizDlg2 "The purple quadrangle always has four right angles and four sides of equal length.",Yes, No, , , 2
end if



if rdm = 8 then
 QuizDlg2 "The red quadrangle is a square.",Yes, No, , , 1
end if


if rdm = 9 then
 QuizDlg2 "The grey quadrangle is a rectangle.",Yes, No, , , 1
end if


if rdm = 10 then
 QuizDlg2 "The yellow quadrangle is a rectangle.",Yes, No, , , 2
end if

if rdm = 11 then
 QuizDlg4 "If the length of AB is 3cm, then the length of DC is __cm", 3
end if


if rdm = 12 then
 QuizDlg4 "If the length of AD is 2cm, then the length of BC is __cm", 2
end if

if rdm = 13 then
 QuizDlg4 "If the angle BAD is 60 degrees, then the angle BCD is __degrees", 60
end if

if rdm = 14 then
 QuizDlg4 "If the angle BAD is 60 degrees, then the angle ADC is __degrees", 120
end if

if rdm = 15 then
 QuizDlg4 "If the length of EF is 2cm, then the length of EH is __cm",2 
end if

if rdm = 16 then
 QuizDlg4 "If the angle EFG is 30 degrees, then the angle EHG is __degrees", 30
end if

if rdm = 17 then
 QuizDlg4 "If the angle EFG is 60 degrees, then the angle FEH is __degrees", 120
end if

if rdm = 18 then
 QuizDlg4 "If the length of IJ is 2cm, then the length of JK is __cm",2 
end if

if rdm = 19 then
 QuizDlg4 "The angle LKJ is always __ degrees", 90
end if

if rdm = 20 then
 QuizDlg4 "If the length of MP is 4cm, then the length of NO is __cm",4 
end if

if rdm = 21 then
 QuizDlg4 "The angle PON is always __ degrees", 90
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



