3 ms·
I am curious if there are languages that would be able to use the same techniques but beat the number of chars. Code golfers often use Ruby due to what the synt
by k2xl 4y ago
I am curious if there are languages that would be able to use the same techniques but beat the number of chars. Code golfers often use Ruby due to what the syntax allows.
Also, a shameless plug, but if you are interested in a Sokoban like game, you might enjoy Pathology (formerly called Psychopath built in 2005). It is a 2d block pushing game where the goal is to go from Point A to Point B in shortest amount of steps. There's a level editor (thousands of levels) multiplayer, and active community (Many folks from the Sokoban online community play too)
https://pathology.gg https://pathology.gg
- mabbo 4y agoHaving only started using ruby professionally recently, I have a vague idea of what you mean about "what the syntax allows". But I'm curious if you have specific details? Are there good references for how I can make my coworkers hate me?
- k2xl 4y agohttps://codegolf.stackexchange.com/questions/363/tips-for-golfing-in-ruby https://codegolf.stackexchange.com/questions/363/tips-for-go... Enjoy!
- cole-k 4y agoAt least on the Code Golf Stack Exchange, I see a lot of people using esolangs for golfing (two random examples: Jelly [1] and O5AB1E [2]). I expect that it could be a line or two shorter at least with a change of language. As I recall some of the golfing langs also have pretty sophisticated compression techniques for strings, although they might be optimized for dictionary words. Careful distinction: they are all optimizing for bytes used, not characters used. I don't want to neglect your shameless plug, but I struggle enough to find a solution to some of the puzzles I wrote (hence the undo), so finding the shortest path is a little daunting. [1] https://github.com/DennisMitchell/jellylanguage https://github.com/DennisMitchell/jellylanguage [2] https://github.com/Adriandmen/05AB1E https://github.com/Adriandmen/05AB1E