User:Alex Randomkat/vector.js

/* var seeNotif = true; var SpamSec = 2; var breakAdd = 0; var timerSpam = 0; var theHits = 0; function addSpamCounter { timerSpam = timerSpam + 1; } function countSpam { setInterval(addSpamCounter,1000); } function Spam { confirm("Spam! XD                        It has been " + timerSpam + " seconds since you activated Spam!"); SpamSec = SpamSec + 2; } function bReak { breakAdd = breakAdd + 1; } while(seeNotif) { var neep = confirm("lewl I can code and annoy myself with notifications, click cancel to do stuff and ok to view page undisturbed."); if (neep) { seeNotif = false; } else { seeNotif = false; var gameY = confirm("Would you like to play a stupid game? If you click cancel I will start infinite spam."); if(gameY){ var gameCof = confirm("Ok, do you really want to start game? No spam if you cancel."); }else{ countSpam; setInterval(Spam,2000); }	}		} while (gameCof) { setTimeout (bReak,750); confirm("So, first stupid game. Copy and paste a large block of text (at least a page's worth) from anywhere, I give you 15 seconds starting when you press 'Ok' to do this. If you fail to complete the task, you cannot play."); setTimeout (bReak,15000); var gInput = prompt("Time's up! Paste your text into this little text box.").toLowerCase; setTimeout(bReak,1000); var gGuess = prompt("Now guess how many of the word 'the' there are in that large block of text you just entered. (Put in guess as a whole number only)"); if (gInput.length > 0) { for(a = 0; a > gInput.length; a++) { if(a === 0) { if (gInput[a] === "t") { a = a + 1; if (gInput[a] === "h") { a = a + 1; if (gInput[a] === "e") { a = a + 1; if (gInput[a] === " " || gInput[a] === ")" || gInput[a] === "]" || gInput[a] === "-" || gInput[a] === "_" || gInput[a] === "*") {								theHits = theHits + 1;							} else if (gInput[a] === "," || gInput[a] === "." || gInput[a] === ":" || gInput[a] === ";") {								a = a + 1;								if(gInput[a] === " ") {									theHits = theHits + 1;								}							}						}					}				}			} else {				if (gInput[a] === " " || gInput[a] === "(" || gInput[a] === "[" || gInput[a] === "*" || gInput[a] === "-" || gInput[a] === "_") { a = a + 1; if (gInput[a] === "t") { a = a + 1; if (gInput[a] === "h") { a = a + 1; if (gInput[a] === "e") { a = a + 1; if (gInput[a] === " " || gInput[a] === ")" || gInput[a] === "]" || gInput[a] === "-" || gInput[a] === "_" || gInput[a] === "*") {									theHits = theHits + 1;								} else if (gInput[a] === "," || gInput[a] === "." || gInput[a] === ":" || gInput[a] === ";") {									a = a + 1;									if(gInput[a] === " ") {										theHits = theHits + 1;									}								}							}						}					}				}			}		}	} else {		confirm("Please enter some text.");	}	var guessOff = theHits - gGuess;	var guessOffp2 = guessOff ^ 2;	setTimeout(bReak,3000);	if (guessOff === 0) {		confirm("Holy crap! You guessed the number of the word 'the' your text contained correctly! (well you could have used a really short piece of text or one that had no 'the's...) But anyways, your text contained " + theHits + " of the word 'the'.");	} else if (guessOff > 0) {		confirm("Your guess was under the actual amount of the word 'the' in your text. There were " + theHits + " 'the's in your text, and you guessed that there were " + gGuess + ". You were off by " + guessOff + ".");	} else if (guessOff < 0) {		confirm("Your guess was over the actual amount of the word 'the' in your text. There were " + theHits + " 'the's in your text, and you guessed that there were " + gGuess + ". You were off by " + Math.sqrt(guessOffp2) + ".");	} } //^^ This thing I made years ago was getting annoying.