@@ -0,0 +1,2788 @@
+import javax.swing.*;%0A%0Apublic class Player%0A%7B%0A   private int score;%0A   public String%5B%5D hand = new String%5B5%5D;%0A   private boolean judge, inHand;%0A   private String selectedGif;%0A   /**%0A   *The default constructor for a Player. Sets the player's score to zero and sets their judging status to false.%0A   */%0A   public Player()%0A   %7B%0A      score = 0;%0A      judge = false;%0A   %7D%0A   %0A   /**%0A   *Returns the score of the player.%0A   *@return The player's current score.%0A   */%0A   public int getScore()%0A   %7B%0A      return score;%0A   %7D%0A   %0A   /**%0A   *Sets the player's score to the int value passed.%0A   *@param x The new score of the player.%0A   */%0A   public void setScore(int x)%0A   %7B%0A      score = x;%0A   %7D%0A   %0A   /**%0A   *Returns true if the player is currently the judge, false otherwise.%0A   *@return %0A   */%0A   public boolean isJudge()%0A   %7B%0A      return judge;%0A   %7D%0A   %0A   /**%0A   *Set's the player's judge status.%0A   *@param j The desired judge status of the player.%0A   */%0A   public void setJudge(boolean j)%0A   %7B%0A      judge = j;%0A   %7D%0A   %0A   /**%0A   *Checks if the gif with the path specified is in the player's hand.%0A   */%0A   public boolean inHand(String s)%0A   %7B%0A      for(int x = 0; x %3C hand.length; x++)%0A      %7B%0A         if(hand%5Bx%5D == s %7C%7C inHand == true)%0A            inHand = true;%0A         else%0A            inHand = false;%0A      %7D%0A      return inHand;%0A   %7D%0A   %0A   /**%0A   *Returns the path of the gif in the specified position of the player's hand.%0A   *@param x The hand position to be searched.%0A   *@return The path of the gif in the hand position specified.%0A   */%0A   public String getGifInHand(int x)%0A   %7B%0A      return hand%5Bx%5D;%0A   %7D%0A   %0A   /**%0A   *Sets the gif in the hand position specified to the gif at the path specified.%0A   *@param x The desired hand position of the new gif.%0A   *@param s The path of the gif to be added to the player's hand.%0A   */%0A   public void setGifInHand(int x, String s)%0A   %7B%0A      hand%5Bx%5D = s;%0A   %7D%0A   %0A   /**%0A   *Returns the position in the player's hand of the gif with the path name specified.%0A   *@param s The path of the gif to be located in the player's hand.%0A   *@return The hand position of the gif at the path specified.%0A   */%0A   public int getGifHandPos(String s)%0A   %7B%0A      int pos = -1;%0A      for(int x = 0; x %3C hand.length; x++)%0A         if(hand%5Bx%5D == s)%0A         %7B%0A            pos = x;%0A         %7D%0A      return pos;%0A   %7D%0A   %0A   /**%0A   *Chooses the gif at the path specified as the player's selection for the current round.%0A   *@param s The path of the gif to be selected.%0A   */%0A   public void selectGif(String s)%0A   %7B%0A      selectedGif = s;%0A   %7D%0A   %0A   /**%0A   *Returns the path of the gif the player selected for the current round.%0A   *@return The path of the player's selected gif.%0A   */%0A   public String getSelectedGif()%0A   %7B%0A      return selectedGif;%0A   %7D%0A%7D%0A

Create Player.java