Logo Search packages:      
Sourcecode: gameclock version File versions  Download package

def gameclock::Game::get_turns (   self  ) 

the number of complete turns played

a 'complete turn' is a turn played by each player

this is 1-based, i.e. when the game starts, it's turn 1, after
every player has played once, it's turn 2, etc.

Definition at line 205 of file gameclock.py.

00205                        :
        """the number of complete turns played
        
        a 'complete turn' is a turn played by each player

        this is 1-based, i.e. when the game starts, it's turn 1, after
        every player has played once, it's turn 2, etc.
        """
        return math.floor(self.turns/self.count_players()) + 1

    def count_players(self):


Generated by  Doxygen 1.6.0   Back to index