kellyelton/OCTGN — pull request #650 by brine (2013-02-02 22:44:40+00:00)
Title: expose player.setActivePlayer() to python API

This mimics the "green arrow" buttons in the interface to end your turn.
There's some stupididy involved in the core mechanics of this function
-- you need to give this function the ID of the player that you're
passing your turn to. You can't simply say "I end my turn" and have the
client jump to the next player, because it doesn't keep track of the
actual turn orders.

So NEVER use me.setActivePlayer() because that doesn't actually do
anything. For 2 player games, typically players[1].setActivePlayer()
will use the functionality you desire. For multiplayer games, you'll
need some custom logic involved to determine who gets the next turn.