https://github.com/nrkn/simplerlgolf
Implementing SimpleRL in as few bytes as possible
https://github.com/nrkn/simplerlgolf
Last synced: 5 days ago
JSON representation
Implementing SimpleRL in as few bytes as possible
- Host: GitHub
- URL: https://github.com/nrkn/simplerlgolf
- Owner: nrkn
- Created: 2011-02-14T05:12:18.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-08-21T02:05:46.000Z (over 11 years ago)
- Last Synced: 2024-11-06T17:50:40.542Z (6 months ago)
- Language: C#
- Homepage:
- Size: 163 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
SimpleRLGolf:
Implementing SimpleRL in as few bytes as possible!More about Golf:
http://codegolf.com/SimpleRL:
https://github.com/nrkn/SimpleRL
Please, only Golf with languages that already exist in SimpleRL and if your
chosen language isn't there, you can always fork SimpleRL, add it and send me a
pull request, or email to [email protected] and I'll add it for you.Requirements:
Must display the following map:
#### ####
# # # #
# #### #
# #
## ##
# #
# #
## ##
# #
# #### #
# # # #
#### ####
Player starts at zero-based location {x: 2, y: 2}
Map and player are drawn before the player provides any input
Must provide a way for the user to move the player around the map, preferably
the arrow keys
Walls block the player
In languages that don't have built in/portable IO feel free to include a
dependency such as curses, but document it in your readme so people can get
your code to work. Please use a common dependency, writing your own that is
deliberately very terse is against the spirit of the challenge
http://en.wikipedia.org/wiki/Curses_%28programming_library%29
End of file markers don't contribute towards size, using unicode chars which
are more than one byte doIt is more important to follow these in spirit than in letter :)
http://en.wikipedia.org/wiki/Letter_and_spirit_of_the_lawProviding a pretty printed, commented version alongside your minified version
would be nice but not requiredI'm going to kick this off with a C# version weighing in at 384 bytes