Let's Talk About Lambda Functions!
Duncan Booth
duncan at NOSPAMrcp.co.uk
Wed Aug 21 08:56:00 EDT 2002
hwlgw at hotmail.com (Will Stuyvesant) wrote in
news:cb035744.0208210429.34a6239b at posting.google.com:
> In nethack (www.nethack.org) a Vorpal Blade is for beheading :-)
> Hmm, a nethack bot written in Python could be fun. Need to capture
> nethack's character based output somehow.
>
Useless trivia: my port of Python 1.5 onto the Psion series 5 was done
shortly after I had ported nethack onto the same device. Most of the work
porting nethack to a new device is providing new screen output functions.
The Python port simply reused some of the nethack code.
Anyway, extracting the output from Nethack at a suitably high level isn't a
hard task. It is pretty well structured in that area.
--
Duncan Booth duncan at rcp.co.uk
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