Skip to content

Commit

Permalink
Added start game method
Browse files Browse the repository at this point in the history
  • Loading branch information
derpferd committed Feb 16, 2018
1 parent 3fffba9 commit a840150
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CYLGame/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def get_frame(self):
def init_board(self):
raise Exception("Not implemented!")

def start_game(self):
raise Exception("Not implemented!")

@staticmethod
def default_prog_for_bot(language):
raise Exception("Not implemented!")
Expand Down Expand Up @@ -278,6 +281,8 @@ def __run_for(self, score=False, playback=False, seed=None):

self.players += [game.create_new_player(bot)]

game.start_game()

screen_cap = []
if game.TURN_BASED:
self.current_player = 0
Expand Down Expand Up @@ -352,6 +357,8 @@ def run(self, seed=None):
players += [game.create_new_player(computer_bot_class())]
player = game.create_new_player(UserProg())

game.start_game()

while game.is_running():
clock.tick(FPS)
for key in display.get_keys():
Expand Down

0 comments on commit a840150

Please sign in to comment.