package main; import java.util.Collections; import java.util.List; import java.util.Stack; import carte.CartePiochable; public class Pioche { private Stack cartesPiochables; private CartePiochable.Type type; public Pioche(List cartesPiochables) { } public Pioche(CartePiochable.Type type, List list1) { super(); this.type = type; this.cartesPiochables = new Stack(); this.cartesPiochables.addAll(cartesPiochables); melanger(); } public void melanger() { Collections.shuffle(cartesPiochables); } public CartePiochable piocher() { return cartesPiochables.pop(); } }