Exemplo n.º 1
0
        protected override ControllerState HandleOtherInput(string key, IGameplay gameplay)
        {
            gameplay.GoTo(ParsePosition(key));

            return gameplay.WhoWins() != BoardMark._
                ? GameOver
                : Play;
        }
Exemplo n.º 2
0
 public string GetPlayStatus(IGameplay gameplay)
 {
     return gameplay.WhoWins() != BoardMark._
                ? String.Format("{0} wins!", gameplay.WhoWins())
                : String.Format("{0} goes:", gameplay.WhoGoesNow);
 }