SedSokoban
rsd writes: "Have you ever thought that sed is too limited and only useful to Regular Expression
scripts? Well, verde666, who works for
Conectiva, proved that it can be used for games
too. He wrote a sokoban game named sedsokoban with sed. There is even a screenshot."
It's possible to sculpt Venus using only a nail file (and a lump of marble).
That doesn't mean nail files are any more useful than we thought.
I am a Karma Library.
Today it's Sokoban... beware, for before you know it it'll be Elite.
GROGGS: alive and well and living in
First of all what is sed? Sorry for being late to the party here, but come on, I have no idea what this is about other then somebodies little text-like game?
........ to do ..... Pretty interesting use of sed because ......"
Mike, don't you think that you could have contributed like a sentence at the end saying something that would bring the picture a little more into the real world focus? Heck, I would settle for something like "Sed is normally used for
Just a thought.
Unfortunately not-- though I'm sure you could submit a patch if you felt like it. See the docs:
#r h or <left-arrow> - move left
#r j or <down-arrow> - move down
#r k or <up-arrow> - move up
#r l or <right-arrow> - move right
There's a handler in there for the "p" key, though I'm still not sure what it's supposed to do. It seems to put sed into an infinite loop.
GROGGS: alive and well and living in
I'd just like to point out that sokoban can be played inside nethack. It's actually a series of levels in the game called The Sokoban Tower. For those that don't know, nethack is an ASCII-based graphical RPG with movement controls inspired by vi.
Consider the case of Andreas Junghanns, who wrote Rolling Stone, the world's top machine Sokoban solver, in C. I'm sure that even as you read this he is working on rewriting it in the Sokoban-friendly language sed.
Or not.
To quote Chris Rock in Bigger and Blacker,
//ct
"Just because I can drive a car with my feet - doesn't make it a good fucking idea".
- sed: 2266:
./sokoban.sed: unexpected EOF (pending }'s)
Once again, GNU tools rule over BSD tools. Well, for gaming, anyway.-- @rjamestaylor on Ello
*DING!*DING!*DING! - We have a Winner!
For a 2kb .png that's the
worst attempt at cheap karma this week.
//ct
$ ./sokoban.sed
Too many {'s$
Bleh...
yes, such a refreshing change from using variables to store parts of the screen :)
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
See http://www-jcsu.jesus.cam.ac.uk/~gsb29/sedgames.ht ml for sed versions of pong, noughts and crosses (tic tac toe in the US, I think), a webserver and a program for translating bf into C.