On Sep 21, 6:25 am, Baba <raoul...@gmail.com> wrote: > Hi > > I am working on a simple wordgame exercise: 2 players form a word by > alternating turns saying a letter, which is added on to the end of the > word fragment. > > I am familiar with loops, iterations etc but i need a hint as to how > to approach alternating turns when writing this code? > > exercise > source:http://ocw.mit.edu/courses/electrical-engineering-and-computer-scienc... > > thanks > Baba
Have a look at the SIMPL toolkit (http://www.icanprogram.com/06py/ lesson1/lesson1.html). This would allow your two players to be split into two separate Python modules. It has the "advantage" that once completed those two players could be deployed across a network, likely without any code changes. bob -- http://mail.python.org/mailman/listinfo/python-list