package piles;

import piles.*;

/**
 * Piles Game.
 *
 * A simple card game to check if a pile is in descending order.
 *
 * @author: Alvin Chao
 * @version 1.0
 */

public class PilesGame {

    public static void main(String[] args) {
        System.out.println("Welcome to the card game Solid Pile!\n");
        Deck d1 = new Deck("PileGame"); // Create deck for our game
        // d1.display();
        d1.shuffle(); // Shuffle the cards in the deck for our game
        Hand hand1 = new Hand("Your Hand"); // setup a pile to play with
        // h1.display(); // show empty hand
        d1.deal(hand1, 5); // deal 5 cards from deck to our pile
        hand1.display(); // show hand with 5 cards
        PileChecker pile = new PileChecker(hand1); // create a PileChecker
                                                   // object
        boolean valid = pile.getValidity(); // Check if hand h1 is a valid hand.
        System.out.println("You have a fully decreasing pile: " + valid);
    }
}
