if can explean this for using pseudo code. Game score player 1 Player 2 player 3
ID: 3829857 • Letter: I
Question
if can explean this for using pseudo code.
Game score player 1 Player 2 player 3 player 4. Card Czar white Card ck black Card Deck drawWCard() drawBC and CurrentScores0 Black Card description wCardsRequird getDescription getWCardsRequird() Player name status wCardName numberof Points numberof Card answerToBCard Player slectWCard0 pickWCard() White Card description ono getDescription Card Czar name status wCardName numberof Points numberOfCard answers FromPlayer selectWinCard() printBCard() printWCardExplanation / Answer
This is a online cards game named as card againt humanity .The diagram given by you is a class diagram which contains varibales and methods .These Methods will call another class by passing parameter as value
ThIs Game contains total of five classes
1)Game
2)Player
3)Black card
4)white Cards
5)cardCzar
step1:first Game class will call draewcards() and drawB cards()
i)drawWcards() calls --->getDescription() of WhiteCard class and get description() calls --->printWcards() from class cardsczar
ii)drawBcards() calls---> getDescription() of BlackCards class And get description() calls -->printBcards() from class cardsczar
iii)currentScores() calls--> getDescription (),getWcards Required() from both Whitecardsclass and blackcard class
step2: Player class -->drawWcard() method is called for each player() will call getdescription() method
step3:so then the getDescription method will get the data from cardCzar class and show to the player by using printWcards
step4:finally if winning scenario occurs then SelectWinCard() method wil call from cardCzar class.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.