import java.util.Scanner; public class Pokerito { public static void main(String[] args) { Scanner scan = new Scanner(System.in); /*Task 2: Explain the rules >>Let's play Pokerito. Type anything when you're ready. | >>It's like Poker, but a lot simpler. >> (new line) >> • There are two players, you and the computer. >> • The dealer will give each player one card. >> • Then, the dealer will draw five cards (the river) >> • The player with the most river matches wins! >> • If the matches are equal, everyone's a winner! >> (new line) >> • Ready? Type anything if you are. | */ /*Task 3: Present the user with a card println 'Here's your card:' println 'Here's the computer's card:' */ int yourMatches = 0; int computerMatches =0; /** Task 4 - Draw five cards * * • print: Now, the dealer will draw five cards. Press enter to continue. * • The dealer will draw a card every time the user presses enter. * • Before you draw a card, print the order it was drawn in: * Card 1 * <2 new lines> * * Card 2 * <2 new lines> * * ... */ /** Task 5 - Get the winner * * • Count your number of matches. * • Count the computer's number of matches. * • print: Your number of matches: * • print: Computer number of matches: * * • If you have more matches, print: You win!. * • If the computer has more matches, print: The computer wins! * • If the matches are equal, print: everyone wins!. */ scan.close(); } /** Task 1 * * Function name – randomCard * @return (String) * * Inside the function: * 1. Gets a random number between 1 and 13. * 2. Returns a card that matches the random number (get the String values from cards.text). */ }