import src.hlt as hlt from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square import random myID, game_map = hlt.get_init() hlt.send_init("Team D") while True: game_map.get_frame() moves = [ Move(square, random.choice((NORTH, EAST, SOUTH, WEST, STILL))) for square in game_map if square.owner == myID ] hlt.send_frame(moves)
import src.hlt as hlt from src.strategy import Strategy from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square from src.parameters import Parameters import random myID, game_map = hlt.get_init() hlt.send_init("Level 3") params = Parameters() while True: game_map.get_frame() strategy = Strategy(game_map, params) moves = [ strategy.decide_move(square) for square in game_map if square.owner == myID ] hlt.send_frame(moves)
import src.hlt as hlt from src.strategy import Strategy from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square from src.parameters import Parameters import random myID, game_map = hlt.get_init() hlt.send_init("Level 2") params = Parameters() while True: game_map.get_frame() strategy = Strategy(game_map, params) moves = [ strategy.decide_move(square) for square in game_map if square.owner == myID ] hlt.send_frame(moves)
import src.hlt as hlt from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square import random myID, game_map = hlt.get_init() hlt.send_init("Team B") while True: game_map.get_frame() moves = [Move(square, random.choice((NORTH, EAST, SOUTH, WEST, STILL))) for square in game_map if square.owner == myID] hlt.send_frame(moves)
import src.hlt as hlt from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square from src.strategy import Strategy myID, game_map = hlt.get_init() hlt.send_init("Team A") strategy = Strategy(game_map, myID) while True: game_map.get_frame() moves = [ Move(square, strategy.apply_strategy(square)) for square in game_map if square.owner == myID ] hlt.send_frame(moves)
import src.hlt as hlt from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square import random myID, game_map = hlt.get_init() hlt.send_init("Team C") while True: game_map.get_frame() moves = [Move(square, random.choice((NORTH, EAST, SOUTH, WEST, STILL))) for square in game_map if square.owner == myID] hlt.send_frame(moves)
import src.hlt as hlt from src.strategy import Strategy from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square from src.parameters import Parameters import random myID, game_map = hlt.get_init() hlt.send_init("Level 1") params = Parameters() while True: game_map.get_frame() strategy = Strategy(game_map, params) moves = [strategy.decide_move(square) for square in game_map if square.owner == myID] hlt.send_frame(moves)
import src.hlt as hlt from src.strategy import Strategy from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square from src.parameters import Parameters import random myID, game_map = hlt.get_init() hlt.send_init("Level 4") params = Parameters() while True: game_map.get_frame() strategy = Strategy(game_map, params, myID) moves = [strategy.decide_move(square) for square in game_map if square.owner == myID] hlt.send_frame(moves)
import src.hlt as hlt from src.hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square import random myID, game_map = hlt.get_init() hlt.send_init("Ligma 0") while True: game_map.get_frame() moves = [ Move(square, random.choice((NORTH, EAST, SOUTH, WEST, STILL))) for square in game_map if square.owner == myID ] hlt.send_frame(moves)