📄 pocheada.java
字号:
/*
* Pocheada.java
*
* Created on 3 de junio de 2005, 21:27
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package telefono.reglas;
/**
*
* @author Enrique Vicent Ramis
*/
public class Pocheada extends Pocha implements telefono.Partida.Reglas
{
protected static final int[]lines1={19,20,39};
protected static final int[]lines2={1,20,22,39,42};
protected static final int[]lines3={2,10,13,20,23};
protected static final int[]lines4={3,12,16,24,28};
protected static final int[]lines5={4,11,16,22,27};
protected static final int[]cartas1={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1};
protected static final int[]cartas2={1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,20,20};
protected static final int[]cartas3={1,1,1,2,3,4,5,6,7,8,9,9,9,8,7,6,5,4,3,2,9,9,9};
protected static final int[]cartas4={1,1,1,1,2,3,4,5,6,7,8,9,10,10,10,10,9,8,7,6,5,4,3,2,10,10,10,10};
protected static final int[]cartas5={1,1,1,1,1,2,3,4,5,6,7,8,8,8,8,8,7,6,5,4,3,2,8,8,8,8,8};
/** Creates a new instance of Pocheada */
public Pocheada(int jugadores)
{
super(jugadores);
this.jugadores=jugadores;
switch(jugadores)
{
case 1:
lines=lines1;
cartas=cartas1;
break;
case 2:
lines=lines2;
cartas=cartas2;
break;
case 3:
lines=lines3;
cartas=cartas3;
break;
case 4:
lines=lines4;
cartas=cartas4;
break;
case 5:
lines=lines5;
cartas=cartas5;
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -