private void WonOrTiedMessage(Player lastPlayerToMove) { if (Rules.Won(board.GetSpaces())) { MessageHandler.Winner(lastPlayerToMove.GetName()); } else { MessageHandler.Tied(); } }
private void Turn(Player currentPlayer) { MessageHandler.PrintBoard(board.GetSpaces()); int move = currentPlayer.Move(board.GetSpaces()); MarkBoard(move, currentPlayer.GetMarker()); }
private void SetPlayerName(Player player, string name) { player.AssignName(name); }
private void SetPlayerMarker(Player player, string marker) { player.AssignMarker(marker); }
private string PlayerName(Player player) { return player.GetName(); }
private string PlayerMarker(Player player) { return player.GetMarker(); }
public Setup(Player[] players) { this.players = players; }