()
| 69 | |
| 70 | |
| 71 | def 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 | |
| 85 | class DQNAgent: |
no test coverage detected