AIPlayerBaseGetReward Method

Implementation of an algorithm that decides the shape the player wants as a reward for completing a puzzle.

Definition

Namespace: ProjectLCore.Players
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
protected abstract TetrominoShape GetReward(
	List<TetrominoShape> rewardOptions,
	Puzzle puzzle
)

Parameters

rewardOptions  ListTetrominoShape
A nonempty list containing rewards to choose from.
puzzle  Puzzle
The puzzle that was completed.

Return Value

TetrominoShape
The tetromino the player wants to take.

See Also