SkHahn / Week6Final_WarCardGame

Week 6 Promineo War Card Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Week6Final_WarCardGame

Week 6 Promineo War Card Game For the final project you will be creating an automated version of the classic card game WAR. a) Instantiate a Deck and two Players, call the shuffle method on the deck. b) Using a traditional for loop, iterate 52 times calling the Draw method on the other player each iteration using the Deck you instantiated. c) Using a traditional for loop, iterate 26 times and call the flip method for each player. d) Compare the value of each card returned by the two player’s flip methods. Call the incrementScore method on the player whose card has the higher value. e) After the loop, compare the final score from each player. f) Print the final score of each player and either “Player 1”, “Player 2”, or “Draw” depending on which score is higher or if they are both the same.

About

Week 6 Promineo War Card Game


Languages

Language:Java 100.0%