Inheritance Hierarchy
Drench.Logics Logic
Drench.Logics SinglePlayerLogic
Namespace: Drench.Logics
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The SinglePlayerLogic type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SinglePlayerLogic | Initializes a new instance of the SinglePlayerLogic class |
Methods
Name | Description | |
---|---|---|
![]() | CheckForGameOver | (Inherited from Logic.) |
![]() | GameOver | (Inherited from Logic.) |
![]() | GetPlayerScore | (Inherited from Logic.) |
![]() | GetPlayerTurnsTaken | (Inherited from Logic.) |
![]() | MakeMove | (Overrides Logic MakeMove(Color).) |
![]() | Pass | (Overrides Logic Pass .) |
![]() | Reset | (Inherited from Logic.) |
Fields
Name | Description | |
---|---|---|
![]() | homeSquares | (Inherited from Logic.) |
![]() | turns | (Inherited from Logic.) |
Properties
Name | Description | |
---|---|---|
![]() | ActivePlayer | (Inherited from Logic.) |
![]() | IsGameOver | (Inherited from Logic.) |
![]() | LastPlayerPassed | (Inherited from Logic.) |
Events
Name | Description | |
---|---|---|
![]() | GameFinished | (Inherited from Logic.) |
Remarks
Examples
[Test] public void ActivePlayerIsZero() { Assert.AreEqual(0, logic.ActivePlayer); }
[Test] public void GetColor() { Assert.AreEqual(new Color(0.5f, 1.0f, 1.0f), logic.Board.GetColor(0, 0)); }
[Test] public void ResetGame() { logic.Reset(); Assert.AreEqual(new Color(1.0f, 1.0f, 0.5f), logic.Board.GetColor(0, 0)); }
See Also