📄 test.java
字号:
class Test { public static void main(String args[]) throws InvalidCardException, NoMoreCardsException { /* Seme s=new Seme(Seme.CUORI); Valore v=new Valore(Valore.ASSO); System.out.println(s); System.out.println(v); Carta c = new Carta(s,v); System.out.println(c); Carta c1= new Carta(Seme.CUORI,Valore.DUE); System.out.println(c1); */ Mazzo m = new Mazzo(); m.mescola(); System.out.println(m); /* System.out.println("Ora pesco"); Carta c = m.pesca(); for(int i=1;i<542;i++) { c = m.pesca(); } System.out.println(c); */ ManoUguali hand1 = new ManoUguali(m); ManoUguali hand2 = new ManoUguali(m); //System.out.println(hand1); //System.out.println(); //System.out.println(hand2); //System.out.println(); m.distribuisci(hand1,hand2); System.out.println(hand1); System.out.println(); System.out.println(hand2); /* Mano hand = new Mano(m); System.out.println(hand); System.out.println(); hand.ordina(); System.out.println(hand); */ /* ManoBriscola hand = new ManoBriscola(m, new Seme(Seme.CUORI)); System.out.println(hand); System.out.println(); System.out.println(hand.valore()); */ }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -