Beispiel #1
0
        private void SendPlayerCards()
        {
            string message;

            byte[] messageByte;

            for (int i = 0; i < 4; i++)
            {
                message     = "deal_cards;" + i.ToString() + ";" + gameManager.GetPlayersHand(i) + ";\n\r";
                messageByte = Encoding.ASCII.GetBytes(message);

                foreach (NetworkStream ns in networkStreams)
                {
                    SendMessage(messageByte, ns);
                }
            }
        }