package kuailedoudizhu;
import java.util.ArrayList;
import java.util.Scanner;
/**
* 快乐比大小的玩家类
* Meng7y
* 2017年10月6日 19:21:43
*/
public class Player {
String name = null;
ArrayList<String> handCards = null;
String maxHC = null;
int count = 0;
public void setName() {
System.out.println("欢迎您进入快乐比大小,请输入您的游戏昵称:");
Scanner info = new Scanner(System.in);
name = info.next();
}
public void contrast() {
for(int i = 0; i < 3; i++) {
int a = (int)(Math.random()*51);
System.out.println(a);
if(count < a) {
count = a;
}
String hC = Card.deck.get(a);
handCards.add(hC);
}
maxHC = Card.deck.get(count);
}
}
Developer_Zuck
onemoo
Developer_Zuck
Its_forever
相关分类