/**
 * The only thing this class really tests is whether a
 * SlotMachine and SlotMachineReel have the correct method
 * signatures.  However, running it multiple times could
 * give you more information about how your classes are working.
 * <p>
 * This file should successfully compile with your
 * SlotMachine and SlotMachineReel.
 *
 * @author Zach Tomaszewski
 */
public class SlotMachineTester {

  public static void main(String[] args) {

    //testing SMReel
    System.out.println("SlotMachineReel:");
    SlotMachineReel reel = new SlotMachineReel();
    String symbol = reel.getFace();
    System.out.println("A new reel shows: " + symbol);
    symbol = reel.spin();
    System.out.println("After a spin: " + symbol);
    System.out.print("getFace() [" + reel.getFace() + "] " +
                     "returns the same symbol as the last " +
                     "spin() [" + symbol + "]?: ");
    System.out.println((symbol.equals(reel.getFace())) ? "PASS" : "FAIL");

    //testing SlotMachine
    //(You can /* comment out */ the following code if you want to use this
    // class to test only your SlotMachineReel before writing the SlotMachine.)
    System.out.println();
    System.out.println("SlotMachine:");
    SlotMachine slots = new SlotMachine();
    String front = slots.toString();
    System.out.println("New slot machine shows: " + front);
    slots.pullHandle();
    System.out.println("After a pull: " + slots);  //invoking toString() implicitly
    int payout = slots.getPayout();
    System.out.println("Payout for this combo: " + payout);

    System.out.println("DONE");
  }


}
