ShapeNode Class

Represents a tetromino in the shared reserve.

Definition

Namespace: SimpleAIPlayer
Assembly: SimpleAIPlayer (in SimpleAIPlayer.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
internal class ShapeNode : INode<ShapeNode>
Inheritance
Object    ShapeNode
Implements
INodeShapeNode

Constructors

ShapeNode Initializes a new instance of the ShapeNode class.

Properties

Id The ID of the node. Unique for each TetrominoShape.

Methods

GetEdges Returns the possible ChangeTetrominoAction actions that can be taken from this node.
Heuristic Heuristic function to estimate distances between this node an the other node. Returns 0 if the nodes are equal, otherwise returns 1.

See Also