Labyrinth7/Labyrinth7Game — pull request #22 by Enlightment (2014-06-01 10:24:20+00:00)
Title: Update() no longer Draws, neighter adds Player symbol to Labyrinth; Fixed bug on restart, Optimized Labyrinth validation in factory

Summary:
Bug fixed (missing welcome msg on restart); Removed labyrinth Drawing on Console from Update(), removed player symbol added to GameBoard in Update(); CheckIfAnyExit() optimization and bugs fixed; CheckifAnyExit() Unit tests.

FULL INFO:
Restart bug fixed - missing initialization() method call on restart. Add to LabyrinthGame.cs -> Update() -> case “restart”

this.GameState = GameState.Over;

Remove from LabyrinthGame Update() method:
this.GameBoard[this.Player.PositionX, this.Player.PositionY - 1] = this.GameBoard.PlayerSymbol;
It’s not needed because we separated player position from GameBoard (Labyrinth) drawing on Console. This is a duplicate.
Have to fix GameBoard[x, y] to GameBoard[y, x]

While in Update is not needed because it’s performed by the GameHandler. GameBoard Display is not needed also in Update() because it’s performed by the Draw method. variable isInLabyrinth is not needed - removed.
this.GameBoard.Display(this.Player.Position); - removed.

CheckIfAnyExists() - bug fixed, code optimization and Unit tests implementation