示例#1
0
def get_ai_option(args):
    ai1_option = minirts.AIOption()
    ai1_option.t_len = 1
    ai1_option.fs = args.frame_skip
    ai1_option.fow = args.fow
    ai1_option.use_moving_avg = args.use_moving_avg
    ai1_option.moving_avg_decay = args.moving_avg_decay
    ai1_option.num_resource_bins = args.num_resource_bins
    ai1_option.resource_bin_size = args.resource_bin_size
    ai1_option.max_num_units = args.max_num_units
    ai1_option.num_prev_cmds = args.num_prev_cmds
    ai1_option.num_instructions = args.num_instructions
    ai1_option.max_raw_chars = args.max_raw_chars
    ai1_option.verbose = args.verbose

    ai2_option = minirts.AIOption()
    ai2_option.fs = args.frame_skip
    ai2_option.fow = args.fow
    return ai1_option, ai2_option
示例#2
0
def get_ai_options(args, num_instructions):
    options = []
    for i in range(2):
        ai_option = minirts.AIOption()
        ai_option.t_len = 1
        ai_option.fs = args.frame_skip
        ai_option.fow = args.fow
        ai_option.use_moving_avg = args.use_moving_avg
        ai_option.moving_avg_decay = args.moving_avg_decay
        ai_option.num_resource_bins = args.num_resource_bins
        ai_option.resource_bin_size = args.resource_bin_size
        ai_option.max_num_units = args.max_num_units
        ai_option.num_prev_cmds = args.num_prev_cmds
        ai_option.num_instructions = num_instructions[i]
        ai_option.max_raw_chars = args.max_raw_chars
        ai_option.verbose = args.verbose
        options.append(ai_option)

    return options[0], options[1]
示例#3
0
# Copyright (c) Facebook, Inc. and its affiliates.
示例#4
0
# Copyright (c) Facebook, Inc. and its affiliates.
示例#5
0
# Copyright (c) Facebook, Inc. and its affiliates.
示例#6
0
# Copyright (c) Facebook, Inc. and its affiliates.