Use the given enumerations to write a function Result getResult(Choice player1, Choice player2) . It should determine the winner of a round of Rock, Paper, Scissors between two players (Rock beats Scissors, Scissors beats Paper and Paper beats Rock). Return WIN if player1 wins, LOSE if player1 loses or DRAW if there is no winner.
Write the function bool before(const Date& d1, const Date& d2). It should return true if d1 is before d2. Return false if they are the same or d2 comes first.
A player in a word game has a set of tiles. Each tile has a value and a letter. Complete the function bool hasTile(const Player& p, char c) that returns true if the given player has at least one tile with the same letter as c. Otherwise return false.
If you are stuck, start by just writing a loop to print out the letter of each tile the player has. Once you have that working, then worry about checking each one to see if it is a match for c.