Package fr.umlv.card

Examples of fr.umlv.card.Deck


import fr.umlv.card.Deck;
import static fr.umlv.card.Suit.*;

public class Main {
    public static void main(String[] args) {
        Deck deck = Deck.fromCardsNumberAndColors(2, SPADE, HEART);
        System.out.println(deck.getCardsList());
    }
View Full Code Here


import fr.umlv.card.Deck;
import static fr.umlv.card.Suit.*;

public class Main {
    public static void main(String[] args) {
        Deck deck1 = Deck.fromCardsNumberAndColors(2, SPADE, HEART);
        Deck deck2 = Deck.fromCardsNumberAndColors(2, CLUB, HEART);
        System.out.println(deck1.toString());
        System.out.println(deck2.toString());

        System.out.println(deck1.equals(deck2));
    }
View Full Code Here

import fr.umlv.card.Deck;
import static fr.umlv.card.Suit.*;

public class Main {
    public static void main(String[] args) {
        Deck deck = Deck.fromCardsNumberAndColors(2, 2, SPADE, HEART);
        System.out.println(deck.getCardsList());
    }
View Full Code Here

import static fr.umlv.card.Suit.*;
import fr.umlv.card.Deck;

public class Main {
    public static void main(String[] args) {
        Deck deck1 = Deck.fromCardsNumberAndColors(2, 2, SPADE, HEART);
        System.out.println(deck1.getCardsList());
        try {
            Deck deck2 = deck1.split()[0];
            Deck deck3 = deck1.split()[1];
            System.out.println(deck2.getCardsList());
            System.out.println(deck3.getCardsList());
        } catch (Exception e) {
            System.out.println(e);
        }
    }
View Full Code Here

TOP

Related Classes of fr.umlv.card.Deck

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.