Chapter 2. Configuration

Table of Contents

Introduction

Introduction

Several runtime options of Amy can be configured by a resource file. Amy looks for the resource file in the current directory. The resource file is named .amyrc (typically used on Unix/Linux platforms) or Amy.ini (typically used on Windows).

A typical resource file might look like this:

Example 2.1. An Amy resource file

#
# Sample .amyrc
#
# Use 20 MB of hashtables:
ht=20m
#
# Look for tablebases on /space/TB
tbpath=/space/TB
#
# Use 2 processors for parallel search
cpu=2
#
# Enable game autosaving to allow booklearning
autosave=true

Table 2.1. Resource file entries

OptionDescription
autosave If set to true games played by Amy will be automatically saved. This also enables booklearning.
cpu Specifies the number of cpu to use for parallel search.
ht Determines the size of the hashtable. Use the suffixes k to specify the size in kilobytes or m to specify the size in megabyes.
tbpath Specifies the path were the endgame tablebases are located.