コード例 #1
0
ファイル: Program.cs プロジェクト: IlyichExperiments/UDP_XO
        static void Main(string[] args)
        {
            Program myProgram = new Program();
            myProgram.Establish();

            Game myGame = new Game();
            myGame.getdatafromplayer1 = ReadFromConsole;
            myGame.getdatafromplayer2 = myProgram.ReceiveMsgFromClient;
            myGame.writemessagePlayer1 = WriteToConsole;
            myGame.writemessagePlayer2 = myProgram.SendMsgToClient;
            myGame.Go();
        }