public bool IsGameOver() { var endTime = TimeJoined.AddMilliseconds(Board.TotalGameTime); var isGameOver = (DateTime.UtcNow > endTime); return(isGameOver); }
public int GetTimeLeft() { var endTime = TimeJoined.AddMilliseconds(Board.TotalGameTime); var span = (endTime - DateTime.UtcNow); return((int)span.TotalMilliseconds); }