Find Jobs
Hire Freelancers

clojure implementation of a treasure hunt

$30-50 CAD

Closed
Posted almost 5 years ago

$30-50 CAD

Paid on delivery
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

About the project

1 proposal
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of CANADA
Verdun, Canada
0.0
0
Member since May 27, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.