Exemple #1
0
        public async Task endTurn()
        {
            pl.GotDk = false;
            pl.IsTrn = false;
            //delaying the main process here gives the game a better flow
            //it slows down the deal
            //using process pausing also ensures that the random object dosnt keep generating the same cards
            await Task.Delay(100);

            await en.mkMove(pl, enScr, this, deck);

            if (!en.Stndng)
            {
                //delaying the main process gives the game the illusion that the AI is thinking
                await Task.Delay(1000);
            }
        }