Example #1
0
        public void Gameplay()
        {
            do
            {
                gameData = server.GetData();
                PaintGame(gameData);

                while (gameData.ILost == false && gameData.OppLost == false)
                {
                    server.SendKeypress(new Keypress(leftKeyPressed, rightKeyPressed));
                    gameData = server.GetData();
                    PaintGame(gameData);
                }

                server.SendContinue(QueryContinue());
            } while (server.ContinueApproved());
        }