English draughts - an environment for evaluating heuristics

the user manual


The interface elements

The main program window

The main window contains the current state of the game board and the menu bar for changing the game settings.

The individual pieces are as follows:

wp

The man of the top player

   

wk

The king of the top player

   

bp

The man of the bottom player

   

bk

The king of the bottom player

The menu contains the following options:

Moving pieces

Move a piece from one place to another by dragging it with the mouse to the desired field. Note that this can be done only when it is the turn of the human player who owns the piece to be moved and when the move is in compliance with the rules http://en.wikipedia.org/wiki/English_draughts. When it is the turn of the computer player, the game pieces are moved automatically.

Board editing

To start the edit mode the option Edit should be selected in Settings/Board. To confirm the changes the game needs to be reset. The pieces are set with the mouse:

game board

The main program window

Game control window

The game control window allows to control the game and keeps the game statistics.

The window contains the following buttons:

Player statistics

The player statistics are presented in three text fields and denote:

control window

The game control window

Heuristics window

The heuristic interface window consists of a text box and the menu bar. The text box allows the user to enter their own heuristic function. A detailed description of the heuristic function API is HERE.

The menu contains the following options:

Heuristic function input format

The heuristic function entered in the text window must be consistent with the example obtained by using the Options/Load example. Missing program lines marked as required will result in the rejection of the source code entered. Note that the string set is not allowed and if present will result in the rejection of the source code entered.

The internal function

Selecting Options/Load internal function will display the acknowledgment statement. Choosing any of the save options will assign the internal evaluation function to the designated player. The displayed message should not be edited in any way or it will result in saving the revised text as a new heuristic function.

Sending a message to the log window

To send a message from the evaluation function to the log window, use the method Judge.updateLog(String message).

heuristics window

The heuristics window

The log window

Any changes made to the program by the user and the history of the game are recorded in the log window.

log window

The log window


Useful links

- documentation of the API of the heuristic evaluation function
- Wikipedia page of the English draughts