Skip to content

Instantly share code, notes, and snippets.

@SuperJMN
Created May 11, 2014 16:56
Show Gist options
  • Save SuperJMN/28b2519921e9a86c34fa to your computer and use it in GitHub Desktop.
Save SuperJMN/28b2519921e9a86c34fa to your computer and use it in GitHub Desktop.
Una clase
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