Meetup - Tuesday 6th March
26 February 2012
Hey Guys, We've had quite a few presentation meetups lately, and an excellent lightning talk session too, so by my reckoning it's about time for a coding challenge! I've been having a bit of a think about this, and looked through some of the Ruby Quizzes, and this one looks like a lot of fun. We're going to implement... A Rogue[1] Walker! The aim of this will be to explore the dungeons (supplied on the night) and escape in the fastest time possible. You will need to implement a class which displays the dungeon & player on each step, and knows how to cope with the following elements: + = door ( the stairs may be behind a door)
~ = liquid (water => blue, lava => red, acid => green)
# = wall
< = up stairs (back to the town)
> = down stairs (deeper into the dungeon toward the exit)
^ = trap
* = gold (found in walls, ie ##*##)
X = FinishBonus points will be awarded for finding gold along the way, in the form of time deductions.
See you at the next meetup!Tom
[1] http://en.wikipedia.org/wiki/Rogue_%28video_game%29Implementation Details:1) You will be given a set of text files which will contain the dungeon layouts. So your walker will need to read these
2) You will need to explore each dungeon until you find the down stairs, you can only see where you have been and the squares immediately surrounding your walker.
3) Your time will finish once you have stepped onto the X square.
~ = liquid (water => blue, lava => red, acid => green)
# = wall
< = up stairs (back to the town)
> = down stairs (deeper into the dungeon toward the exit)
^ = trap
* = gold (found in walls, ie ##*##)
X = FinishBonus points will be awarded for finding gold along the way, in the form of time deductions.
See you at the next meetup!Tom
[1] http://en.wikipedia.org/wiki/Rogue_%28video_game%29Implementation Details:1) You will be given a set of text files which will contain the dungeon layouts. So your walker will need to read these
2) You will need to explore each dungeon until you find the down stairs, you can only see where you have been and the squares immediately surrounding your walker.
3) Your time will finish once you have stepped onto the X square.
blog comments powered by Disqus