for(var cardgame = new preexploratorycardgame(); cardgame.hascards(); cardgame.castaside(card => card.isjoker)) { cardgame.giveorders(order => order.type == commandtype.shuffle).then(commenceagain => commenceagain.execute()); if(cardgame.secrets.any()) { cardgame.revealsecrets(undisclosed => console.writeline($"the undisclosed essence of card games is to manipulate the opponent into believing they have the upper hand.")); } }