13.12.2012 Views

Re:TheAshLad - Sandbooks

Re:TheAshLad - Sandbooks

Re:TheAshLad - Sandbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Math.abs(Math.sin(today.getTime())). function rand(). seed seed .. if<br />

(seed .) seed seed .. return seed. function randpos(). return<br />

Math.floor(rand() .). function makeMap(). for (var i i. return this.<br />

function makeRow(). for (var i i. return this. function initgame(). map<br />

new makeMap(). srand(). map map map. map map map. map map map.<br />

map map map. map map map. map map map. map map map. map map<br />

map. map map map. map map map. map map map. map map map. map<br />

map map. map map map. map map map. map map map. map map map.<br />

map map map. map map map. map map map. pos bat. while (pos bat<br />

pos bat pos wumpus pos pit. bat pit bat pit wumpus pit). bat randpos().<br />

bat randpos(). wumpus randpos(). pit randpos(). pos randpos().<br />

alert(batbat batbat wumpuswumpus pitpit. pospos). draw(). function<br />

bump(a). r Math.floor(rand() ). if (r ). if (a ). alert(You bumped the<br />

wumpus). else. alert(The crafty wumpus dodged your arrow). if (r ).<br />

wumpus mapwumpus. else if (r ). wumpus mapwumpus. else if (r ).<br />

wumpus mapwumpus. function draw(). document.forms.box.value<br />

mappos. document.forms.box.value mappos. document.forms.box.value<br />

mappos. msg in cave pos. for (var i i. var p mapposi. if (bat p bat p).<br />

msg msg you hear bats.... if (pit p). msg msg you feel a draft.... if<br />

(wumpus p). msg msg you smell a wumpus....<br />

document.forms.msgbox.value msg. if (pos bat). alert(You've been<br />

snatched by a giant bat). pos randpos(). draw(). bat pos. while (pos bat<br />

pos wumpus bat pit). bat randpos(). else if (pos bat). alert(You've been<br />

snatched by a giant bat). pos randpos(). draw(). bat pos. while (pos bat<br />

pos wumpus bat pit). bat randpos(). else if (pos pit). alert(Uuuaaaa....<br />

You fell into a pit). initgame(). else if (pos wumpus). bump(). if (pos<br />

wumpus). alert(Gulp You've been eaten by the wumpus). initgame().<br />

function go(n). pos mapposn. draw(). function fire(n). var arrow<br />

mapposn. alert(wumpuswumpus arrowarrow). if (arrow wumpus).<br />

bump(). if (arrow wumpus). alert(You killed the wumpus). initgame().<br />

else. alert(Twang... The arrow didn't hit anything.). draw().<br />

metamohriin. . main. I shmhgl. Mari. Arne. ... . chapters. ..<br />

commentary. .. index words. noemata.net. I shmhgl. Mgtetw hanei aaef<br />

eesgst hnoa clugesphml nln efeeroc osth.. Iueshdrac ul es auateehe onra<br />

bthbncetlsucld sadiet tjr cmbe tamu. lylotcai ha npsrea ngtiw moe<br />

eowdpulbp egi eleoi elli furen rf iieokwog. ijoaiuh ethrisee ni titu ud.<br />

Eesrmoislne. Oumltpiate s i ts ixe n li. caap rlta e aeems eto qi tbin<br />

punet ta toeawnpk tep cirl tmntop. ennttees taya use ruetjiwe edcdeusfa<br />

esno tne iidssdiss aanatoeoia. anatoodrt inlreet sg rsa vi tco.. Gndt opes<br />

sn ohe elt rotieeien pahe tut ofbeto kl w mhi c idt. wmhonosohia iss<br />

54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!