
import pygame
from scenes import director
from scenes import intro_scene

pygame.init()


def main():
    game_director = director.Director()
    scene = intro_scene.IntroScene(game_director)
    game_director.change_scene(scene)
    game_director.loop()


if __name__ == '__main__':
    pygame.init()
    main()


import pygame
from scenes import director
from scenes import intro_scene
from game_logic import settings

pygame.init()


def main():
    initial_settings = settings.Settings(
        trials=1000, player='O', oponent='Computer')
    game_director = director.Director()
    scene = intro_scene.IntroScene(game_director)
    game_director.change_scene(scene, initial_settings)
    game_director.loop()


if __name__ == '__main__':
    pygame.init()
    main()

Create initial config when starting game
Create initial config when starting game

  
  import pygame
  from scenes import director
  from scenes import intro_scene
+ from game_logic import settings
  
  pygame.init()
  
  
  def main():
+     initial_settings = settings.Settings(
+         trials=1000, player='O', oponent='Computer')
      game_director = director.Director()
      scene = intro_scene.IntroScene(game_director)
-     game_director.change_scene(scene)
+     game_director.change_scene(scene, initial_settings)
      game_director.loop()
  
  
  if __name__ == '__main__':
      pygame.init()
      main()
  
Create initial config when starting game
## Code Before:

import pygame
from scenes import director
from scenes import intro_scene

pygame.init()


def main():
    game_director = director.Director()
    scene = intro_scene.IntroScene(game_director)
    game_director.change_scene(scene)
    game_director.loop()


if __name__ == '__main__':
    pygame.init()
    main()

## Instruction:
Create initial config when starting game
## Code After:

import pygame
from scenes import director
from scenes import intro_scene
from game_logic import settings

pygame.init()


def main():
    initial_settings = settings.Settings(
        trials=1000, player='O', oponent='Computer')
    game_director = director.Director()
    scene = intro_scene.IntroScene(game_director)
    game_director.change_scene(scene, initial_settings)
    game_director.loop()


if __name__ == '__main__':
    pygame.init()
    main()
