data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////2wBDAf//////////////////////////////////////////////////////////////////////////////////////wAARCAAyADIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAL/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFgEBAQEAAAAAAAAAAAAAAAAAAAED/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AgBogAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//2Q==
[img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]]\n\s\n[img[Blue]]\s\n<<if $location eq "1,5">><<PlayerIcon>><<elseif $p15 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "2,5">><<PlayerIcon>><<elseif $p25 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "3,5">><<PlayerIcon>><<elseif $p35 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "4,5">><<PlayerIcon>><<elseif $p45 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "5,5">><<PlayerIcon>><<elseif $p55 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n[img[Blue]]\s\n\n[img[Blue]]\s\n<<if $location eq "1,4">><<PlayerIcon>><<elseif $p14 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "2,4">><<PlayerIcon>><<elseif $p24 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "3,4">><<PlayerIcon>><<elseif $p34 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "4,4">><<PlayerIcon>><<elseif $p44 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "5,4">><<PlayerIcon>><<elseif $p54 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n[img[Blue]]\s\n\n[img[Blue]]\s\n<<if $location eq "1,3">><<PlayerIcon>><<elseif $p13 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "2,3">><<PlayerIcon>><<elseif $p23 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "3,3">><<PlayerIcon>><<elseif $p33 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "4,3">><<PlayerIcon>><<elseif $p43 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "5,3">><<PlayerIcon>><<elseif $p53 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n[img[Blue]]\s\n\n[img[Blue]]\s\n<<if $location eq "1,2">><<PlayerIcon>><<elseif $p12 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "2,2">><<PlayerIcon>><<elseif $p22 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "3,2">><<PlayerIcon>><<elseif $p32 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "4,2">><<PlayerIcon>><<elseif $p42 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "5,2">><<PlayerIcon>><<elseif $p52 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n[img[Blue]]\s\n\n[img[Blue]]\s\n<<if $location eq "1,1">><<PlayerIcon>><<elseif $p11 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "2,1">><<PlayerIcon>><<elseif $p21 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "3,1">><<PlayerIcon>><<elseif $p31 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "4,1">><<PlayerIcon>><<elseif $p41 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n<<if $location eq "5,1">><<PlayerIcon>><<elseif $p51 eq "visited">>[img[White]]<<else>>[img[Black]]<<endif>>\s\n[img[Blue]]\s\n\n[img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]][img[Blue]]
data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAAyADIDASIAAhEBAxEB/8QAGgABAQEAAwEAAAAAAAAAAAAAAAYEAwUHCP/EACgQAAICAgICAgEDBQAAAAAAAAECAwQABQYREiEHExQWIzElNlF2tf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwD7LxjGBi3e21Wj1c203ezpayhB4/bauTrDFH5MFHk7EAdsQB2f5IGdZxvm/C+S3no8c5fx/c244jM8FDZQ2JFQEAuVRiQvbKO/47I/znWfMyzfomKaGndt/jbvT2pYqdWSxL9UWyrSSMscas7eKIzEKCegcmeE7mtyT5T0+w1V3k24pUNJtKlm/tNHNSSOf79dGYgzV4UZy9awzKOyriQdKoVVD1nGMYDGMYDGM4b9aO7RsU5mmWKeJonaGZ4ZAGHRKuhDI3v0ykEH2CDgTN+3a5ZesabTWZqumrStDtNpBIUkmdT09Ss49qwIKyzKe4yDHGft83rxnxRoJOO8XubfhmuhjVOQbqK5pYAkMN2GPZ2kQxD0kVhEVVRj0rqqxSEKIpIPWaFSrQo16NGtDVqVolhgghjCRxIo6VFUelUAAAD0AMkvhv8AtG9/sm9/61vAptJtKG61cOy1s/3VpfIAlGRlZWKujowDI6sGVkYBlZSrAEEZtzFU1dCptL2yrQfVZv8A1m0VdgsrIvirlO/Hz8elL9eRVI1JIRAu3AYxjAYxjAn/AJF3drj3Ctns9bHDNtBEINZDMCY57szCKtE3RHSvM8aEkqAG7LKASJn430lXgPLbPCKckz663qKd3XS2SHmmepDFRsAlQFCpFHrm9qCWnkKkgFY6Dlerv7nk/GYPo/o9GzLs7sjOrJLLEnhXgaMns/uTfkK/sI9RPXkysrmurvz7Tjm91EH3XdVslE0ausbT051MM6FyR0iecdkp782qxgDy8WUKbGMYDGMYDGMYDGMYDGMYDGMYH//Z
<<set $x = 3>>\n<<set $y = 3>>\n\n<<set $treasurex = random(1,5)>>\n<<set $treasurey = random(1,5)>>\n<<set $treasure = [$treasurex,$treasurey]>>\n<<if $treasure eq "3,3">><<set $treasure = "1,1">><<endif>>\n\n<<set $treasurefound = "no">>
<<if $treasurefound eq "yes">>[img[PlayerWin]]<<else>>[img[Player]]<<endif>>
<<set $location = [$x,$y]>>\n<<if $x eq $treasurex and $y eq $treasurey>><<set $treasurefound = "yes">><<endif>>\n\n<<if $location eq "1,1">><<set $p11 = "visited">><<endif>>\n<<if $location eq "1,2">><<set $p12 = "visited">><<endif>>\n<<if $location eq "1,3">><<set $p13 = "visited">><<endif>>\n<<if $location eq "1,4">><<set $p14 = "visited">><<endif>>\n<<if $location eq "1,5">><<set $p15 = "visited">><<endif>>\n\n<<if $location eq "2,1">><<set $p21 = "visited">><<endif>>\n<<if $location eq "2,2">><<set $p22 = "visited">><<endif>>\n<<if $location eq "2,3">><<set $p23 = "visited">><<endif>>\n<<if $location eq "2,4">><<set $p24 = "visited">><<endif>>\n<<if $location eq "2,5">><<set $p25 = "visited">><<endif>>\n\n<<if $location eq "3,1">><<set $p31 = "visited">><<endif>>\n<<if $location eq "3,2">><<set $p32 = "visited">><<endif>>\n<<if $location eq "3,3">><<set $p33 = "visited">><<endif>>\n<<if $location eq "3,4">><<set $p34 = "visited">><<endif>>\n<<if $location eq "3,5">><<set $p35 = "visited">><<endif>>\n\n<<if $location eq "4,1">><<set $p41 = "visited">><<endif>>\n<<if $location eq "4,2">><<set $p42 = "visited">><<endif>>\n<<if $location eq "4,3">><<set $p43 = "visited">><<endif>>\n<<if $location eq "4,4">><<set $p44 = "visited">><<endif>>\n<<if $location eq "4,5">><<set $p45 = "visited">><<endif>>\n\n<<if $location eq "5,1">><<set $p51 = "visited">><<endif>>\n<<if $location eq "5,2">><<set $p52 = "visited">><<endif>>\n<<if $location eq "5,3">><<set $p53 = "visited">><<endif>>\n<<if $location eq "5,4">><<set $p54 = "visited">><<endif>>\n<<if $location eq "5,5">><<set $p55 = "visited">><<endif>>
/* Your story will use the CSS in this passage to style the page.\nGive this passage more tags, and it will only affect passages with those tags.\nExample selectors: */\n\nbody {\n\t/* This affects the entire page */\n\ttext-align:center;\n\t\n}\n.passage {\n\t/* This only affects passages */\n\ttext-align:center;\n\t\n}\n.passage a {\n\t/* This affects passage links */\n\t\n\t\n}\n.passage a:hover {\n\t/* This affects links while the cursor is over them */\n\t\n\t\n}
<<logic>><<map>>\n\nFind the treasure!\n\n<<if $treasurefound eq "no">>\s\n<<if $y lt 5>>[[North|movement][$y += 1]]<<endif>>\n<<if $x gt 1>>[[West|movement][$x -= 1]]<<endif>>\t<<if $x lt 5>>[[East|movement][$x += 1]]<<endif>>\n<<if $y gt 1>>[[South|movement][$y -= 1]]<<endif>>\s\n<<else>>\s\nYou found the treasure!<<endif>>
data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////2wBDAf//////////////////////////////////////////////////////////////////////////////////////wAARCAAyADIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAP/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AJgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//2Q==
Treasure Hunt
[[Damon L. Wakes|http://www.damonwakes.wordpress.com]]
data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////2wBDAf//////////////////////////////////////////////////////////////////////////////////////wAARCAAyADIDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAP/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//2Q==
data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAAyADIDASIAAhEBAxEB/8QAGwABAQACAwEAAAAAAAAAAAAAAAYDBwIEBQj/xAAtEAACAgICAQMCBAcBAAAAAAABAgMEAAUGERIHEyEUIiMxQVEWJTZxdqGitf/EABgBAQADAQAAAAAAAAAAAAAAAAABAwQC/8QAJBEAAgIBAwIHAAAAAAAAAAAAAAECEQMEITEFsRJBUnGSofD/2gAMAwEAAhEDEQA/APsvGMjeKci5Tsedb/T7bjUlDWUXP0lsj7ZE+0RkP5dSmQe4xCqvteAVizN9tc8sYOKfm6Xc04NLPPDJOLVQVu2k6tLZPl78Iod3ttXo9XNtN1s6WtoQFfdtXJ1hij8mCjydiAO2IA7P5kDPN43zbhnJL70eOcu0G5tpEZngobKGeRUBALlUYkL2yjv8u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[West|movement][$x -= 1]]<<endif>>\t<<if $x lt 5>>[[East|movement][$x += 1]]<<endif>>\n<<if $y gt 1>>[[South|movement][$y -= 1]]<<endif>>\s\n<<else>>\s\nYou found the treasure!<<endif>>