package chocobar.combi; import java.math.BigInteger; class ChocoBarBigInt extends ChocoBar { static private BigInteger[] powers; private BigInteger points; /** * Constructeur d'une barre de choco. * Elle a x carres en largeur et y carres en hauteur, et est toute neuve. **/ private ChocoBarBigInt() { points = new BigInteger("0"); } /** Constructeur par copie. */ private ChocoBarBigInt(ChocoBarBigInt old) { points = old.points; } /** Constructeur par initialisation. */ private ChocoBarBigInt(BigInteger bi) { points = bi; } /** Constructeur par initialisation. */ private ChocoBarBigInt(char c[]) { points = new BigInteger("0"); for (int i=0; (i y); while (points[idx] > y) { if (idx == 0) { fin = true; break; } points[idx-1] ++; idx--; } // On répercute la modif vers la droite s'il y a eu overflow if (overflow) { for (int i=idx; (i