Find Jobs
Hire Freelancers

clojure implementation of a treasure hunt

$30-50 CAD

Avslutat
Publicerad nästan fem år sedan

$30-50 CAD

Betalning vid leverans
In terms of your task, it can be described as follows. You can assume that you are an intrepid explorer, searching for buried [login to view URL],you are underground,wandering through a series of very dark tunnels. You have no light and no signs to guide your [login to view URL] you can do is blindly feel around and wander through the tunnels until you hopefully enter the room that contains the treasure. You can, however, leave a trail of breadcrumbs behind you so that if you come to the end of a tunnel and you can’t go any further, you can get back to where you were and try again in another direction. The map could look like this: - - - # - - # # # - - - - - # - - - # - - - - # # - # # # # - # - # - # -## ---#---#-#--- -#-####---##- -#------#---- -############ ------------@ This is a 13 by 8 adjancency list or matrix. Here, the – characters indicate that you are free to move in this direction. The # character indicates that you cannot move any further in this direction and you should go somewhere else. The @character indicates the location of the treasure. In this case, it is in the bottom right corner, but it could be anywhere in the map. Note that we first print the current map and then indicate success or failure. In this case,we were successful. You will also see that the map has been updated to indicate how the walk was done. The + characters indicate the path that led to the treasure. The ! characters indicate the tunnels that were tried but did not to lead to a viable path. Note, for example, that after starting in the top left corner, the explorer tried to go down but that path was a dead end. So a ! was used to mark a bad path and then the explorer went to the right, which eventually lead to the treasure. Woo hoo, I found the treasure :-) +++#--###--#- !#+++#+++-##- ####+#+#+#!## +++#+++#+#!!! +#+####++!##! +#++++++#!!!! +############ ++++++++++++@
Project ID: 19797243

Om projektet

1 anbud
Distansprojekt
Senaste aktivitet fem år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag

Om kunden

Flagga för CANADA
Verdun, Canada
0,0
0
Medlem sedan maj 27, 2019

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.