[Twisted-Python] Would this do it?

Jasper Phillips jasper at peak.org
Sun Apr 13 18:57:55 MDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 13 Apr 2003, dansan wrote:

> Enlightened ones,

That's not me, but I'll answer anyway...

> I'm trying to develop a small server for a checkers tournament that we
> are trying to host in our school.  Students will submit their entries
> that talk on stdin-stdout.  Our idea was to make a socket server that
> receives all the connections and then makes them all play a tournament.
> I've been thinking about doing it from scratch, just using an array of
> connections somehow, but this has proven to be way more difficult than I
> anticipated.  For one, I've had a difficult time trying to figure out a
> way of 'managing' the server real-time.  I've come across twisted just a
> day ago, and I'm wondering if I could make it work for me.  Is twisted
> applicable to my problem?
> 
> I'd appreciate any an all input anyone can give me.  I am quite the
> beginner in python, but I'm willing to read up anything that needs to be
> read :)

I'm using twisted's Perspective Broker for a generic turn based game engine,
and it works smoothly.  Using PB allows you to write your api almmost as if
networking wasn't involved, excepting only that you'll need to use "callRemote"
for client/server calls instead of normal method calling (and connect your
client/server of course).

The Perspective Broker section on this page was usefull to me:
http://twistedmatrix.com/documents/howto/

- -Jasper

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+mgea8EpjZ7/X9bIRAmAOAJ9/p4Z5+CrIBLZe3P3VTWRcsNyRXACgpNPG
2hk3eED8fXi54fEYh+kGcbw=
=ltvO
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list