Source

aichallenge-py / settings.py

# -*- 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.