
---------card32----------

On opencard 32
  put 32 into presentcard
put 0 into init32
put 0 into cover32
put 15 into Item 1 of risu32
put 18 into Item 2 of  risu32
put 17 into Item 3 of  risu32
put 1 into Item 4 of risu32
put 16 into Item 5 of  risu32
----------------------------------
put 22 into Item 1 of bag32
put 23 into Item 2 of bag32
put 21 into Item 3 of bag32
put 24 into Item 4 of bag32
put 20 into Item 5 of bag32
------------------------------------
put 84 into Item 1 of Dongurix
put 190 into Item 2 of Dongurix
put 117 into Item 3 of Dongurix
put 139 into Item 4 of Dongurix
put 42 into Item 5 of Dongurix
put 70 into Item 6 of Dongurix
put 171 into Item 7 of Dongurix
put 171 into Item 8 of Dongurix
put 86 into Item 9 of Dongurix
put 183 into Item 10 of Dongurix
put 141 into Item 11 of Dongurix
put 117 into Item 12 of Dongurix
put 114 into Item 13 of Dongurix
put  69 into Item 14 of Dongurix
put  93 into Item 15 of Dongurix
put 154  into Item 16 of Dongurix



put 189 into Item 1 of Donguriy
put 218 into Item 2 of Donguriy
put 179 into Item 3 of Donguriy
put 199 into Item 4 of Donguriy
put 200 into Item 5 of Donguriy
put 217 into Item 6 of Donguriy
put 201 into Item 7 of Donguriy
put 237 into Item 8 of Donguriy
put 239 into Item 9 of Donguriy
put 173 into Item 10 of Donguriy
put 240 into Item 11 of Donguriy
put 221 into Item 12 of Donguriy
put 133 into Item 13 of Donguriy
put 117 into Item 14 of Donguriy
put 157 into Item 15 of Donguriy
put 154  into Item 16 of Donguriy
if game_on is not 1 then
  put 3 into ntx
  play salmons
  naratoranimex
  wait 2 seconds
   play bokuwo
   put 5 into ntx
   naratoranimex

end if


game_set32

end opencard







On game_set32
put random(16) into donguri32
putInt donguri32 into fld dongurisuu
put random(5) into risusu32
putInt risusu32 into fld risusuu
lock screen






repeat with i = 1 to 16

put 25 + i -1 into n
set loc of btn %n% to Item i of DonguriX, Item i of DonguriY
if i <= donguri32 then
show btn %n%
else
hide btn %n%
end if
end repeat



repeat with i = 1 to 5
 put Item i of risu32 into n
 put Item i of bag32 into nnn
if i <= risusu32 then
 show btn %n%
 show btn %nnn%
else
 hide btn %n%
 hide btn %nnn%
end if
 set bitmap of btn %nnn% to risu_bag
end repeat

set bitmap of btn amaribag to amaribag






unlock screen
End game_set32

On share32
----------keisan-------
put donguri32 mod risusu32 into amari32
put (donguri32-amari32)/risusu32 into shou32
lock screen

repeat with i = 1 to 16
 put 25 + i -1  into d
 set loc of btn %d% to -20, i * 15
 show btn %d%
end repeat
unlock screen
End share32



On show_risu_bag
lock screen
     put 25 into xxx
  repeat with i= 1 to risusu32
     put shou32 * (i-1) + xxx  into d1
      put d1 +1 into d2
     put d2 +1 into d3
     put d3 +1 into d4
     put d4 +1 into d5
     put d5 +1 into d6
     put d6 +1 into d7
     put d7 +1 into d8
     put d8 +1 into d9
     put d9 +1 into d10
     put d10 +1 into d11
     put d11 +1 into d12
     put d12 +1 into d13
     put d13 +1 into d14
     put d14 +1 into d15
     put d15 +1 into d16
     put Item i of bag32 into n
    set bitmap of btn %n% to risu_bg2
-------------------set donguri onto bag
          if shou32=1  then
               set loc of btn %d1% to LocH of btn %n%, LocV of btn %n%
            end if
          if shou32=2 then
           set loc of btn %d1% to (LocH of btn %n%) - 15, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%) , LocV of btn %n%
         end if
          if shou32=3 then
           set loc of btn %d1% to (LocH of btn %n%) - 15, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%) , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 15, LocV of btn %n%
           end if
           if shou32=4 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
            end if
           if shou32=5 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
          set loc of btn %d5% to LocH of btn %n%, (LocV of btn %n%) - 15
          end if

            if shou32=6 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
          set loc of btn %d5% to LocH of btn %n%, (LocV of btn %n%) - 15
         set loc of btn %d6% to (LocH of btn %n%)-15, (LocV of btn %n%) - 15
          end if
      
            if shou32=7 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
          set loc of btn %d5% to LocH of btn %n%, (LocV of btn %n%) - 15
         set loc of btn %d6% to (LocH of btn %n%)-15, (LocV of btn %n%) - 15
         set loc of btn %d7% to (LocH of btn %n%)+15, (LocV of btn %n%) - 15
          end if
         
            if shou32=8 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           end if


            if shou32=9 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%), LocV of btn %n% + 15
           end if

            if shou32=10 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%), LocV of btn %n% + 15
          set loc of btn %d10% to (LocH of btn %n%)-15, LocV of btn %n% + 15
            end if

           if shou32=11 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%), LocV of btn %n% + 15
          set loc of btn %d10% to (LocH of btn %n%)-15, LocV of btn %n% + 15
          set loc of btn %d11% to (LocH of btn %n%)+15, LocV of btn %n% + 15
           end if

          if shou32=12 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 15
           set loc of btn %d10% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 15
          set loc of btn %d11% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 15
         set loc of btn %d12% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 15
           end if

          if shou32=13 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 15
           set loc of btn %d10% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 15
          set loc of btn %d11% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 15
         set loc of btn %d12% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 15
          set loc of btn %d13% to (LocH of btn %n%), LocV of btn %n% + 30
           end if

          if shou32=14 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 15
           set loc of btn %d10% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 15
          set loc of btn %d11% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 15
         set loc of btn %d12% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 15
          set loc of btn %d13% to (LocH of btn %n%), LocV of btn %n% + 30
         set loc of btn %d14% to (LocH of btn %n%)-15, LocV of btn %n% + 30
            end if

          if shou32=15 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 15
           set loc of btn %d10% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 15
          set loc of btn %d11% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 15
         set loc of btn %d12% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 15
          set loc of btn %d13% to (LocH of btn %n%), LocV of btn %n% + 30
         set loc of btn %d14% to (LocH of btn %n%)-15, LocV of btn %n% + 30
         set loc of btn %d15% to (LocH of btn %n%)+15, LocV of btn %n% + 30
              end if

          if shou32=16 then
           set loc of btn %d1% to (LocH of btn %n%) - 22, LocV of btn %n%
           set loc of btn %d2% to (LocH of btn %n%)-7 , LocV of btn %n%
          set loc of btn %d3% to (LocH of btn %n%) + 8, LocV of btn %n%
         set loc of btn %d4% to (LocH of btn %n%) + 23, LocV of btn %n%
           set loc of btn %d5% to (LocH of btn %n%) - 22, (LocV of btn %n%) -15
           set loc of btn %d6% to (LocH of btn %n%)-7 ,( LocV of btn %n%) - 15
          set loc of btn %d7% to (LocH of btn %n%) + 8,( LocV of btn %n%) - 15
         set loc of btn %d8% to (LocH of btn %n%) + 23,( LocV of btn %n%) - 15
           set loc of btn %d9% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 15
           set loc of btn %d10% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 15
          set loc of btn %d11% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 15
         set loc of btn %d12% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 15
          set loc of btn %d13% to (LocH of btn %n%) - 22, (LocV of btn %n%) + 30
           set loc of btn %d14% to (LocH of btn %n%)-7 ,( LocV of btn %n%) + 30
          set loc of btn %d15% to (LocH of btn %n%) + 8,( LocV of btn %n%) + 30
         set loc of btn %d16% to (LocH of btn %n%) + 23,( LocV of btn %n%) + 30
               end if


  end repeat

---------------------------------  amaribag open
 put shou32 * risusu32 + 25 into amaribtn
 set bitmap of btn amaribag to amaribg2

if amari32 = 1 then
set loc of btn %amaribtn% to LocH of btn amaribag, LocV of btn amaribag
end if

if amari32 = 2 then
set loc of btn %amaribtn% to LocH of btn amaribag, LocV of btn amaribag
put amaribtn + 1 into amaribtn2
set loc of btn %amaribtn2% to LocH of btn amaribag-15, LocV of btn amaribag
end if

if amari32 = 3 then
set loc of btn %amaribtn% to LocH of btn amaribag, LocV of btn amaribag
put amaribtn + 1 into amaribtn2
set loc of btn %amaribtn2% to LocH of btn amaribag-15, LocV of btn amaribag
put amaribtn + 2 into amaribtn3
set loc of btn %amaribtn3% to LocH of btn amaribag+15, LocV of btn amaribag
end if

if amari32 = 4 then
set loc of btn %amaribtn% to LocH of btn amaribag, LocV of btn amaribag
put amaribtn + 1 into amaribtn2
set loc of btn %amaribtn2% to LocH of btn amaribag-15, LocV of btn amaribag
put amaribtn + 2 into amaribtn3
set loc of btn %amaribtn3% to LocH of btn amaribag+15, LocV of btn amaribag
put amaribtn + 3 into amaribtn4
set loc of btn %amaribtn4% to LocH of btn amaribag, LocV of btn amaribag + 15
end if

unlock screen





End show_risu_bag



On reset_donguri
lock screen
repeat with i = 1 to 16
put 25 + i - 1 into d
set loc of btn %d% to Item i of donguriX, item i of donguriY
if i > 1 then
 hide btn %d%
end if
end repeat
repeat with i = 1 to 5
 put Item i of risu32 into r
 put Item i of bag32 into b

 set bitmap of btn %b% to risu_bag
 if i > 1 then
   hide btn %b%
   hide btn %r%
 end if
end repeat
set bitmap of btn amaribag to amaribag
unlock screen
put 0 into shou32
put 0 into amari32
put 1 into risusu32
put 1 into donguri32
End reset_donguri

On incre_donguri
if donguri32 +1 < =16 then
put donguri32 +1 into donguri32
putInt donguri32 into fld dongurisuu
put 25 + donguri32 -1 into d
show btn %d%
else
put 1 into donguri32
putInt 1 into fld dongurisuu
lock screen
repeat with k= 26 to 40
hide btn %k%
end repeat
unlock screen
end if
end incre_donguri


On decre_donguri
if donguri32 -1 > = 1 then
put 25 + donguri32 -1  into d
hide btn %d%
put donguri32 -1 into donguri32
end if
end decre_donguri


On incre_risu
if risusu32 +1 < =5 then
put risusu32 +1 into risusu32
putInt risusu32 into fld risusuu
put Item risusu32 of risu32 into d
put Item risusu32 of bag32 into b
lock screen
show btn %d%
show btn %b%
unlock screen
else
put 1 into risusu32
putInt 1 into fld risusuu
lock screen
repeat with k = 2 to 5
put Item k of risu32 into d
put Item k of bag32 into b
hide btn %d%
hide btn %b%
end repeat

unlock screen
end if
end incre_risu
---------------------unused---------
On decre_risu
if risusu32 -1 > =1 then
put Item risusu32 of risu32 into d
put Item risusu32 of bag32 into b
lock screen
hide btn %d%
hide btn %b%
unlock screen
put risusu32 - 1 into risusu32
end if
end decre_risu
-------------------------------------

On show_risusu_adjusted
if wishedrisusu >= risusu32 then
  repeat wishedrisusu - risusu32 times
   incre_risu
  end repeat
else
  repeat risusu32 - wishedrisusu times
   decre_risu
  end repeat
end if
End show_risusu_adjusted

On show_donguri_adjusted
 if wisheddonguri >= donguri32 then
   repeat wisheddonguri- donguri32 times
      incre_donguri
   end repeat
 else
   repeat donguri32 - wisheddonguri times
      decre_donguri
   end repeat
 end if


End show_donguri_adjusted



On practice32
 put 4 into ntx
  play NAKANI1

  naratoranimex
wait 3 seconds
share32

if random(2) = 1 then
put donguri32 mod risusu32  into ans32
 QuizDlg4 "How many salmons are in the Bag of Remainders?", ans32
else
 put (donguri32 - (donguri32 mod risusu32))/risusu32 into ans32
  QuizDlg4 "How many salmons are in the Bag of My Share?", ans32
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
 
lock screen
repeat with i = 1 to 16
put 25 + i -1 into n
set loc of btn %n% to Item i of DonguriX, Item i of DonguriY
if i <= donguri32 then
show btn %n%
else
hide btn %n%
end if
end repeat



repeat with i = 1 to 5
 put Item i of risu32 into n
 put Item i of bag32 into nnn
if i <= risusu32 then
 show btn %n%
 show btn %nnn%
else
 hide btn %n%
 hide btn %nnn%
end if
 set bitmap of btn %nnn% to risu_bag
end repeat
set bitmap of btn amaribag to amaribag



unlock screen
          exit practice32
        else
              play jawharp
          showwitch_surprised
        end if

       show_risu_bag
       wait 3 seconds

       else
           play good
           show_frog_good



       show_risu_bag
       wait 3 seconds
  


    end if

lock screen
repeat with i = 1 to 16
put 25 + i -1 into n
set loc of btn %n% to Item i of DonguriX, Item i of DonguriY
if i <= donguri32 then
show btn %n%
else
hide btn %n%
end if
end repeat

repeat with i = 1 to 5
 put Item i of risu32 into n
 put Item i of bag32 into nnn
if i <= risusu32 then
 show btn %n%
 show btn %nnn%
else
 hide btn %n%
 hide btn %nnn%
end if
 set bitmap of btn %nnn% to risu_bag
end repeat
set bitmap of btn amaribag to amaribag
unlock screen

     
    
End practice32


On Game32
put 0 into Game32Count
Repeat 5 times
game_set32
  put 3 into ntx
  play NAKANI1
   naratoranimex
wait 4 seconds
share32
if random(2) = 1 then
put donguri32 mod risusu32  into ans32
 QuizDlg4 "How many salmons are in the Bag of Remainders?", ans32
else
 put (donguri32 - (donguri32 mod risusu32))/risusu32 into ans32
  QuizDlg4 "How many salmons are in the Bag of My Share?", ans32
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
            game_set32
          exit repeat
        else
              play jawharp
          showwitch_surprised
        end if

       show_risu_bag
       wait 3 seconds
            game_set32
       else
           play good
           put Game32Count +1 into Game32Count
           show_frog_good



       show_risu_bag
       wait 3 seconds
            game_set32


    end if



End Repeat 

If game_on is not 1 then

 if Game32Count = 5 then
     ok100
 end if
 if Game32Count = 4 then
     ok80
 end if
 if Game32Count = 3 then
     ok60
 end if
end if
    
 
End Game32





















On Game32_2
put 0 into Game32Count
Repeat with i32_2 = 1 to 2 
game_set32
  put 3 into ntx
 play NAKANI1
   naratoranimex
wait 4 seconds
share32
if random(2) = 1 then
put donguri32 mod risusu32  into ans32


 QuizDlg4 "How many salmons are in the Bag of Remainders?", ans32
else
 put (donguri32 - (donguri32 mod risusu32))/risusu32 into ans32
  QuizDlg4 "How many salmons are in the Bag of My Share?", ans32
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
        else
              play jawharp
          showwitch_surprised
        end if

       show_risu_bag
       wait 3 seconds
        exit Game32_2

       else
           play good
           put Game32Count +1 into Game32Count
           show_frog_good
         if i32_2= 2 then
          show_risu_bag
          wait 3 seconds
            exit Game32_2
         end if


       show_risu_bag
       wait 3 seconds
            game_set32


    end if



End Repeat 

If game_on is not 1 then

 if Game32Count = 5 then
     ok100
 end if
 if Game32Count = 4 then
     ok80
 end if
 if Game32Count = 3 then
     ok60
 end if
end if
    
 
End Game32_2






--------end card32------ 
