MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / initialize_game

Function initialize_game

examples/python/learning_tensorflow.py:71–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def initialize_game():
72 print("Initializing doom...")
73 game = vzd.DoomGame()
74 game.load_config(config_file_path)
75 game.set_window_visible(False)
76 game.set_mode(vzd.Mode.PLAYER)
77 game.set_screen_format(vzd.ScreenFormat.GRAY8)
78 game.set_screen_resolution(vzd.ScreenResolution.RES_640X480)
79 game.init()
80 print("Doom initialized.")
81
82 return game
83
84
85class DQNAgent:

Callers 1

Calls 2

initMethod · 0.95
DoomGameMethod · 0.80

Tested by

no test coverage detected