Beispiel #1
0
        public bool IsGameOver()
        {
            var endTime    = TimeJoined.AddMilliseconds(Board.TotalGameTime);
            var isGameOver = (DateTime.UtcNow > endTime);

            return(isGameOver);
        }
Beispiel #2
0
        public int GetTimeLeft()
        {
            var endTime = TimeJoined.AddMilliseconds(Board.TotalGameTime);
            var span    = (endTime - DateTime.UtcNow);

            return((int)span.TotalMilliseconds);
        }