今天突然发现 自己指头一个斗都没,继在网上查了下资料,大概形容是这样的:
class hand
{
int o; //(o为斗的数量)
String destiny=null;//(定义命运)
public hand
{
if(o!=null){
if(o==1)
{
destiny="穷";//就是命运穷啦~~~
}
else if(o==2)
{
destiny="富";
}
else if(o==3||o==4)
{
destiny="不要命";//不知道算不算,有待验证
}
else if(o==5)
{
destiny="做乞丐";//这个最离谱,两个朋友都是,难道.......
}
else if(o==6||o==7)
{
destiny="福禄全";
}
else if(o==8)
{
destiny="管天下";
}
else if(o==8)
{
destiny="叫卖油";
}
else if(o==9)
{
destiny="叫卖油";
}
else if(o==9)
{
destiny="宰相福";
}
}else{destiny="?????????????????????????";}//因为我一个都无,不用判断,直接下来
}
}
呵呵,只为一乐,朋友们切勿对号入坐~~~~~~~圣诞快乐~~~~~~
class hand
{
int o; //(o为斗的数量)
String destiny=null;//(定义命运)
public hand
{
if(o!=null){
if(o==1)
{
destiny="穷";//就是命运穷啦~~~
}
else if(o==2)
{
destiny="富";
}
else if(o==3||o==4)
{
destiny="不要命";//不知道算不算,有待验证
}
else if(o==5)
{
destiny="做乞丐";//这个最离谱,两个朋友都是,难道.......
}
else if(o==6||o==7)
{
destiny="福禄全";
}
else if(o==8)
{
destiny="管天下";
}
else if(o==8)
{
destiny="叫卖油";
}
else if(o==9)
{
destiny="叫卖油";
}
else if(o==9)
{
destiny="宰相福";
}
}else{destiny="?????????????????????????";}//因为我一个都无,不用判断,直接下来
}
}
呵呵,只为一乐,朋友们切勿对号入坐~~~~~~~圣诞快乐~~~~~~