问答详情
源自:7-1 简易扑克牌游戏

跪求大神

有扑克牌小游戏的源代码吗?

提问者:後知後覺1 2016-10-05 10:47

个回答

  • qq_风已静_04366714
    2016-12-19 20:56:40

    public int compareTo(PokerCard arg0) {

    // TODO Auto-generated method stub

    if(comparePoint(point, arg0.point) == 0)

    return comparePoint(color, arg0.color); 

    return comparePoint(point, arg0.point);

    }

    想问下为什么两个点数相等为什么还要调用comparePoint(color, arg0.color); 

    不应该是compareColor(color, arg0.color); 吗?

  • ziom
    2016-10-06 06:30:27

    http://www.imooc.com/opus/resource?opus_id=3402