Duncan Booth duncan at
Tue Aug 13 11:20:21 CEST 2002

Lee Harr <missive at> wrote in 
news:ulggcarr8tnbd1 at

>> # Sokoban in Python
> Very nice, but...
> No Undo!?!

Have you ever played Nethack? The more recent versions include some Sokoban 
levels: no undo, monsters that attack you (or worse lurk behind boulders to 
stop you pushing them), spare boulders (which can actually make it harder) 
not to mention the mimics that look like boulders but aren't. Some of the 
usual nethack things are allowed (creating/destroying boulders, 
jumping/levitating over the pits, or squeezing round a boulder), but the 
game penalises you if you do any of them. Diagonal movement is allowed, but 
only where it doesn't affect the gameplay.

Duncan Booth                                             duncan at
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?

More information about the Python-list mailing list