home *** CD-ROM | disk | FTP | other *** search
- if(numpopped == 1)
- {
- bubplural = "";
- }
- else
- {
- bubplural = "s";
- }
- popreport = "You popped " + numpopped + " bubble" + bubplural;
- mintext = new String(minutes);
- if(mintext.charAt(0) == "0")
- {
- mintext = mintext.slice(1);
- }
- if(mintext == "1")
- {
- minplural = "";
- }
- else
- {
- minplural = "s";
- }
- sectext = new String(seconds);
- tentext = new String(tenths);
- if(sectext.charAt(0) == "0")
- {
- sectext = sectext.slice(1);
- }
- if(sectext == "1" && tentext == "0")
- {
- secplural = "";
- }
- else
- {
- secplural = "s";
- }
- if(mintext != "0")
- {
- minreport = mintext + " minute" + minplural;
- }
- else
- {
- minreport = "";
- }
- if(minreport != "")
- {
- secreport = " and " + sectext;
- }
- else
- {
- secreport = sectext;
- }
- if(tentext != "0")
- {
- secreport += "." + tentext;
- }
- secreport += " second" + secplural;
- if(minreport == "" && tenths == "0")
- {
- secreport += " flat";
- }
- if(sectext == "0" && tentext == "0")
- {
- secreport = " flat";
- }
- timereport = "in " + minreport + secreport;
- if(minutes == 99 && seconds == 59 && tenths == 9)
- {
- timereport = "and ran out the timer";
- }
- if(nummanic == 0)
- {
- manicreport = "without using ";
- }
- else if(nummanic == numpopped)
- {
- manicreport = "using ";
- }
- else
- {
- manicreport = "with " + Math.round(100 * nummanic / numpopped) + "% use of ";
- }
- manicreport += "Manic Mode!";
- youpopped = popreport + "\n" + timereport + "\n" + manicreport;
- stop();
-