Main.java 699 Bytes
Newer Older
1 2
import com.sun.jdi.Value;

Jose Baez committed
3 4 5 6 7
import java.util.*;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
8
        Juego j = new Juego();
Jose Baez committed
9 10 11

        List<Carta> cartas = new ArrayList<>();
        cartas = Arrays.asList(
Jose Baez committed
12
                new Carta("TD"),
Jose Baez committed
13 14 15 16
                new Carta("KD"),
                new Carta("AD"),
                new Carta("JD"),
                new Carta("QD")
Jose Baez committed
17
        );
18 19 20 21

        cartas.forEach(System.out::print);
        cartas.sort(Comparator.comparing(carta -> carta.valor));
        System.out.println();
22 23
//        cartas.forEach(System.out::print);
//        System.out.println();
Jose Baez committed
24

25
        j.juegosPosibles(cartas);
Jose Baez committed
26 27 28


    }
29 30


Jose Baez committed
31
}