import settings
from basics import initiator


class GameState:

    #Attributes: lor (list of Rockets)
    #              lob (list of Obstacles
    #            fps (Positive Number)
    #            game_over_flag (a flag)        tickcount
    #               Number of Rockets
    def __init__(self, fps = settings.DEFAULT_FPS, lor = initiator.initiate_random_lor(settings.POPULATION , settings.GENE_LENGTH)):

        self.tick_count = 0
        self.game_over_flag = False
        self.fps = fps
        self.lor = lor
        self.lobs = settings.ACTIVE_OBSTACLES

    def get_rocket(self,index):
        return self.lor[index]

    # Return the list of Rocket instance in current game state
    def get_lor(self):
        return self.lor

    # return the list of genes of all rockets in the current game state
    def get_log(self):
        log = []
        for rocket in self.lor:
            log.append(rocket.gene)

        return log








01496dd5b3574cf197490fba72ff60730d28a52f
<mask token>


class GameState:
    <mask token>
    <mask token>

    def get_lor(self):
        return self.lor
    <mask token>

<mask token>


class GameState:
    <mask token>

    def get_rocket(self, index):
        return self.lor[index]

    def get_lor(self):
        return self.lor

    def get_log(self):
        log = []
        for rocket in self.lor:
            log.append(rocket.gene)
        return log

<mask token>


class GameState:

    def __init__(self, fps=settings.DEFAULT_FPS, lor=initiator.
        initiate_random_lor(settings.POPULATION, settings.GENE_LENGTH)):
        self.tick_count = 0
        self.game_over_flag = False
        self.fps = fps
        self.lor = lor
        self.lobs = settings.ACTIVE_OBSTACLES

    def get_rocket(self, index):
        return self.lor[index]

    def get_lor(self):
        return self.lor

    def get_log(self):
        log = []
        for rocket in self.lor:
            log.append(rocket.gene)
        return log

import settings
from basics import initiator


class GameState:

    def __init__(self, fps=settings.DEFAULT_FPS, lor=initiator.
        initiate_random_lor(settings.POPULATION, settings.GENE_LENGTH)):
        self.tick_count = 0
        self.game_over_flag = False
        self.fps = fps
        self.lor = lor
        self.lobs = settings.ACTIVE_OBSTACLES

    def get_rocket(self, index):
        return self.lor[index]

    def get_lor(self):
        return self.lor

    def get_log(self):
        log = []
        for rocket in self.lor:
            log.append(rocket.gene)
        return log

import settings
from basics import initiator


class GameState:

    #Attributes: lor (list of Rockets)
    #              lob (list of Obstacles
    #            fps (Positive Number)
    #            game_over_flag (a flag)        tickcount
    #               Number of Rockets
    def __init__(self, fps = settings.DEFAULT_FPS, lor = initiator.initiate_random_lor(settings.POPULATION , settings.GENE_LENGTH)):

        self.tick_count = 0
        self.game_over_flag = False
        self.fps = fps
        self.lor = lor
        self.lobs = settings.ACTIVE_OBSTACLES

    def get_rocket(self,index):
        return self.lor[index]

    # Return the list of Rocket instance in current game state
    def get_lor(self):
        return self.lor

    # return the list of genes of all rockets in the current game state
    def get_log(self):
        log = []
        for rocket in self.lor:
            log.append(rocket.gene)

        return log







