Created
May 11, 2014 16:56
-
-
Save SuperJMN/28b2519921e9a86c34fa to your computer and use it in GitHub Desktop.
Una clase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Match : ITwoPlayersGame | |
{ | |
private Board Board { get; set; } | |
private MatchCoordinator Coordinator { get; set; } | |
public Match() | |
{ | |
... | |
} | |
public sealed class MatchCoordinator | |
{ | |
public MatchCoordinator(Match match) | |
{ | |
Match = match; | |
} | |
private Match Match { get; set; } | |
... | |
private bool CanContinueGame() | |
{ | |
return !Match.Board.IsFull && !Match.HasWinner; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment