Source

aichallenge-py / settings.py

Full commit
# -*- coding: utf-8 -*-
#
#  settings.py
#  aichallenge-py
#
#  Created by Lars Yencken on 2011-11-13.
#  Copyright 2011 Lars Yencken. All rights reserved.
#

"""
Settings for the AI challenge bot.
"""

DEBUG = False

# discount factor
#   the extent to which we favour short-term reward over long-term reward
MDP_GAMMA = 0.7

# reward structure
#   the extent to which we favour one objective over another
ENEMY_HILL_REWARD = 30
ENEMY_ANT_REWARD = 5
FOOD_REWARD = 15
FRONTIER_REWARD = 2
BASE_REWARD = -1
BARRIER_REWARD = -999999 # never choose this move

# convergence criterion
MDP_EPS = 1e-3

LOG_DIR = 'game_logs'

try:
    from local_settings import *
except ImportError:
    pass