Beispiel #1
0
        public void onGameOver(PlayerColor winColor)
        {
            updater.sendFinalBoard();
            GameInfo gi = new GameInfo("", PlayerColor.None, true, winColor);

            foreach (ConnectedPlayer p in players)
            {
                try{
                    gi.myColor = p.color;
                    protocol.sendGameInfo(getMatchingPlayer(p.color).client.peerID, gi);
                }catch {}
            }
            shutdownServer();
        }