diff --git a/examples/python/cig_bots.py b/examples/python/cig_bots.py index 3bdb42252..76e767459 100755 --- a/examples/python/cig_bots.py +++ b/examples/python/cig_bots.py @@ -4,7 +4,7 @@ from vizdoom import * from random import choice -game = Game() +game = DoomGame() game.set_vizdoom_path("../../bin/vizdoom") @@ -26,7 +26,7 @@ game.add_game_args("+name AI"); # Multiplayer requires the use of asynchronous modes but -game.set_mode(Mode.SPECTATOR) +game.set_mode(Mode.PLAYER) # game.set_window_visible(false) diff --git a/examples/python/min.py b/examples/python/min.py deleted file mode 100644 index aa88c75af..000000000 --- a/examples/python/min.py +++ /dev/null @@ -1,23 +0,0 @@ -from vizdoom import * -import random -import time - -game = DoomGame() -game.load_config("../config/basic.cfg") -game.init() - -shoot = [0,0,1] -left = [1,0,0] -right = [0,1,0] -actions = [shoot, left, right] - -episodes = 10 -for i in range(episodes): - game.new_episode() - while not game.is_episode_finished(): - state = game.get_state() - img = state.image_buffer - misc = state.game_variables - reward = game.make_action(random.choice(actions)) - time.sleep(0.028) - print "Result:", game.get_summary_reward() \ No newline at end of file