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

Function create_simple_game

examples/python/learning_pytorch.py:66–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def create_simple_game():
67 print("Initializing doom...")
68 game = vzd.DoomGame()
69 game.load_config(config_file_path)
70 game.set_window_visible(False)
71 game.set_mode(vzd.Mode.PLAYER)
72 game.set_screen_format(vzd.ScreenFormat.GRAY8)
73 game.set_screen_resolution(vzd.ScreenResolution.RES_640X480)
74 game.init()
75 print("Doom initialized.")
76
77 return game
78
79
80def test(game, agent):

Callers 1

Calls 2

initMethod · 0.95
DoomGameMethod · 0.80

Tested by

no test coverage detected