Multiple instances of a python program

Rahul codedivine at gmail.com
Fri Jun 17 10:55:24 EDT 2005


Daniel Dittmar wrote:
> Rahul wrote:
> > Hi.
> > I am part of a group in my univ where we organize a programming
> > contest. In this contest we have a UDP based server. The server
> > simulates a game and each contestant is to develop a team of virtual
> > players. Each team is composed of 75 similar bots...i.e. governed by
> > the same logic. Thus the contestant submits a single copy of the client
> > and we instantiate the same program 75 times at the same time.
> > The problem is that while executables from C source files are small and
> > we can make 75 processes but we dont know what to do with python.
> >
> > If you have a python script and you want that 75 copies of the script
> > be run simultaneously how will you do it? Is there anyway to do so
> > without running 75 copies of the python interpreter simultaneously?
> >
>
> The technical way would be to use threads.
>
> Of course it could be that the rules of the game explicitly forbid that
> bots of a group communicate other than through the server. And it is
> easier to cheat there when you have only one Python program running.

yup...its not allowed to communicate through other means.

well we do realise that its not easy to catch cheating but we require
the source code of the participants too. and we dont want to provide
simple loopholes.

rahul




More information about the Python-list mailing list