test.java

来自「纸牌游戏(大学作业)」· Java 代码 · 共 57 行

JAVA
57
字号
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 + =
减小字号Ctrl + -
显示快捷键?