Entry
What's the best way to automate a PBEM (Play By E-Mail) game?
May 17th, 2000 01:50
unknown unknown, richard
The following is needed:
* Run a game on regular times (1 to 5 times a week) by starting an
executable and send some on hard disk stored files to the players (email
address can be put into the name of the file or as first line in the
file)
* Get mail from a Pop3 account and look for a certain subject: 'orders'
when found this message must be saved to disk and a executable has to be
started with this file as parameter; as a result a file has to be sent
to the sender of the orders.
This is all pretty straight forward in python.
You need to get some basic knowledge of your subject though, so peruse
www.python.org/doc
You should be looking at files, perhaps re or if it's really simple you
could just use the string module, and then the email libraries (perhaps
poplib and smtplib) in the standard librarie to work with mail. You even
get some nice examples.