<commit_before>'''
Created on 27.11.2013

@author: Michael and Richard

This module contains the logic behind the over-arching Game class.
A Game object can never be instantiated, but is abstracted by
more specific sub-classes.
'''


class Game(object):
    '''
    The Game class acts as a skeleton for all games that can
    be played on the display.
    '''

    def __init__(self):
        '''
        Ctor - Intitialises a game object.
        '''
        self._turn_count = 0

    def next_turn(self):
        '''
        Runs the next turn of the game.
        '''
        self._turn_count += 1

    def get_turn_count(self):
        '''
        Returns the number of turns that have so far passed
        in the game.
        '''
        return self._turn_count<commit_msg>Code documentation added. Written by Michael.<commit_after>'''
This module contains the logic for any game to be played with the laid out data structures. These are games that are
played on a grid board of square cells.
'''


class Game(object):
    '''
    The Game class acts as a skeleton for all games that can
    be played on the display.

    This class contains the shared functionality of all games to be played with the given data structure. A Game object
    itself is never instantiated, but works as a backbone for other games, such as the Game of Life.
    '''

    def __init__(self):
        '''
        Ctor - Intitialises a game object.
        '''
        self._turn_count = 0

    def next_turn(self):
        '''
        This method plays the next turn of the game.
        '''
        self._turn_count += 1

    def get_turn_count(self):
        '''
        This method retrieves the number of turns that have have been played in the game so far.

        @return the turn count for the current game.
        '''
        return self._turn_count
{'fraction_non_alphanumeric': 0.07092582566323768, 'fraction_numerical': 0.006497022198159177, 'mean_word_length': 2.2421052631578946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4589633', 'n_tokens_mistral': 505, 'n_tokens_neox': 477, 'n_words': 231}