Labyrinth
A labyrinth game assignment
host.labyrinth.Const Class Reference

Class to hold constant values for entire application. More...

Static Package Attributes

static final int numOfPlayers = 2
 
static final int maxTileWalls = 2
 Number of maximum walls for each tile on the board. More...
 
static final int noSupply =-1
 Number to indicate the absent of supply. More...
 
static final int noOpponent =-1
 Number to indicate the absent of supply. More...
 
static final int noTileId =-1
 Number to indicate wrong tileId. More...
 
static final int EOR =-1
 Number to indicate the End Of Range. More...
 
static final int viewDistance =3
 The max distance of the Heuristic player's ability to see. More...
 
static final int noView = viewDistance+1
 
static final double opponentFactor = 1.0
 Parameters to control move evaluation. More...
 
static final double supplyFactor = 0.65
 supply distance factor More...
 
static final double preMoveFactor = 0.65
 pre move distances factor More...
 
static final double postMoveFactor = 0.35
 post move distances factor More...
 
static final int minimaxTreeDepth = 4
 The maximum depth of the minimax tree. More...
 

Detailed Description

Class to hold constant values for entire application.

Definition at line 21 of file Common.java.

Member Data Documentation

◆ EOR

final int host.labyrinth.Const.EOR =-1
staticpackage

Number to indicate the End Of Range.

Definition at line 27 of file Common.java.

◆ maxTileWalls

final int host.labyrinth.Const.maxTileWalls = 2
staticpackage

Number of maximum walls for each tile on the board.

Definition at line 23 of file Common.java.

◆ minimaxTreeDepth

final int host.labyrinth.Const.minimaxTreeDepth = 4
staticpackage

The maximum depth of the minimax tree.

Definition at line 37 of file Common.java.

◆ noOpponent

final int host.labyrinth.Const.noOpponent =-1
staticpackage

Number to indicate the absent of supply.

Definition at line 25 of file Common.java.

◆ noSupply

final int host.labyrinth.Const.noSupply =-1
staticpackage

Number to indicate the absent of supply.

Definition at line 24 of file Common.java.

◆ noTileId

final int host.labyrinth.Const.noTileId =-1
staticpackage

Number to indicate wrong tileId.

Definition at line 26 of file Common.java.

◆ noView

final int host.labyrinth.Const.noView = viewDistance+1
staticpackage

Definition at line 29 of file Common.java.

◆ numOfPlayers

final int host.labyrinth.Const.numOfPlayers = 2
staticpackage

Definition at line 22 of file Common.java.

◆ opponentFactor

final double host.labyrinth.Const.opponentFactor = 1.0
staticpackage

Parameters to control move evaluation.

opponent distance factor

Definition at line 33 of file Common.java.

◆ postMoveFactor

final double host.labyrinth.Const.postMoveFactor = 0.35
staticpackage

post move distances factor

Definition at line 36 of file Common.java.

◆ preMoveFactor

final double host.labyrinth.Const.preMoveFactor = 0.65
staticpackage

pre move distances factor

Definition at line 35 of file Common.java.

◆ supplyFactor

final double host.labyrinth.Const.supplyFactor = 0.65
staticpackage

supply distance factor

Definition at line 34 of file Common.java.

◆ viewDistance

final int host.labyrinth.Const.viewDistance =3
staticpackage

The max distance of the Heuristic player's ability to see.

Definition at line 28 of file Common.java.


The documentation for this class was generated from the following file: