Example #1
0
        public override Task OnDisconnected()
        {
            var table = Tables.FirstOrDefault(t => t.Id == Context.ConnectionId);

            if (table != null)
            {
                Tables.Remove(table);
                // todo end game
            }

            _game = new GameState();
            Clients.All.gameReset();
            return base.OnDisconnected();
        }
Example #2
0
 public void SetUp()
 {
     _gameState = new GameState();
 }