service { const html Intro = The Wig Game Nobody Wants to Play!

Welcome To The Wiggy Walking Game!



Hi, welcome to my little game where all you have to do is to find the "golden key". Pick a direction and walk until you find the key. Fewest trys gets onto hi-score list!

Enter the you date of birth (YYMMDD)

; const html Bye =

Please continue on playing....

Please click this link to continue....don't click 'Continue' button

; const html StartMsg =

Begin...




Hey, s'up...got some bad news.... the world is being taken over by a millions of insane Bill Gate clones. The key is for a special black box for which all the clones will parish if opened.

The fate of the world lies in your hands, please find that key and save us....you have two weeks (ie 14 chances) before we all rot in Microsoft hell....

Your are currently in the middle of McGill...where do you want to go?
Go straight one step
Go left one step
Go right one step
Go back one step

; const html Prompt1 =


......looking.....



Nothing is here at (<[xpos]>,<[ypos]>).....keep on looking.... where to next?

Go straight one step
Go left one step
Go right one step
Go back one step

; const html Found =

........looking....found something


Upon closer inspection you see something partially buried behind a tree.

Digging into the ground for it....a key appears!
This is the golden key! Congratulations....you have saved this world from Microsoft domination....
You are now famous.....everyone loves you.....you are more popular than god himself....


Thank you for playing this god aweful game....cya soon!; const html NotFound =


....AAAHHHHHHHH!......



You messed up.....can't even find a stupid little key....now you have screwed us and everybody else in the world.... Bill Gates clones are everywhere.....run for you life......

GAME OVER!

; const html ReachBounds =


Reached Edge of World!!!!....

Please pick another direction to go....

Go straight one step
Go left one step
Go right one step
Go back one step

; schema Position { //using tuples for x,y coordinates.... int x; int y; } int seed1,seed2; int day; session begin() { //get seed numbers from birthday show Intro receive[seed1 = year,seed2 = month,day=day]; exit Bye; } session StartPlay() { //start the game session tuple Position p; int num1,num2; //x, y coordinate of key int max; //max int i,limit; string dir; //direction limit = 14; //max limit of guesses num1 = ((12233 * seed1 + 132) % 65536) % 4;//generate x and y coordinates num2 = ((11233 * seed2 + 102) % 65536) % 4; if (day > 0 && day < 8) //generates whether x,y positive or negative num1 = num1 * -1; if (day >= 8 && day < 16) num2 = num2 * -1; if (day > 15 && day < 23) { num1 = num1 * -1; num2 = num2 * -1; } show StartMsg receive[dir=dir]; //show start, user picks direction p = tuple { x=0, y=0 }; //origin max = 3; //bounds i = 0; //increment while (i < limit) { //direction user wants to go if (dir == "left") p.x = p.x - 1; if (dir == "right") p.x = p.x + 1; if (dir == "up") p.y = p.y + 1; if (dir == "down") p.y = p.y - 1; if (p.x == num1 && p.y == num2) //if position matches key coordinates, user wins exit Found; else show plug Prompt1[xpos=p.x,ypos=p.y] receive[dir=dir]; //show where they, try again if (p.x == max && dir == "right") //tell user they reached the bounds show ReachBounds receive[dir=dir]; if (p.x == (max * -1) && dir == "left") show ReachBounds receive[dir=dir]; if (p.y == max && dir == "up") show ReachBounds receive[dir=dir]; if (p.y == (max * -1) && dir == "down") show ReachBounds receive[dir=dir]; i = i + 1; } exit NotFound; //if over limit of tries, then player loses } }