tudo comleto!!
This commit is contained in:
@@ -90,7 +90,7 @@ public class Mavenproject4 {
|
||||
|
||||
saldoAtual += deposito;
|
||||
atualizarSaldo("utilizadores.txt");
|
||||
System.out.println("Novo saldo: " + saldoAtual+ "€");
|
||||
System.out.println("Novo saldo: " + saldoAtual + "€");
|
||||
|
||||
break;
|
||||
|
||||
@@ -173,7 +173,13 @@ public class Mavenproject4 {
|
||||
saldoAtual -= dinheiroApostado;
|
||||
atualizarSaldo("utilizadores.txt");
|
||||
|
||||
int numeroRandom = random.nextInt(9) + 1;
|
||||
int numeroRandom;
|
||||
|
||||
if (admin) {
|
||||
numeroRandom = numeroEscolhido;
|
||||
} else {
|
||||
numeroRandom = random.nextInt(9) + 1;
|
||||
}
|
||||
|
||||
System.out.println("O número aleatório foi: " + numeroRandom);
|
||||
|
||||
@@ -238,9 +244,17 @@ public class Mavenproject4 {
|
||||
|
||||
String[] simbolos = {"🍒", "💎", "🎰"};
|
||||
|
||||
String s1 = simbolos[random.nextInt(simbolos.length)];
|
||||
String s2 = simbolos[random.nextInt(simbolos.length)];
|
||||
String s3 = simbolos[random.nextInt(simbolos.length)];
|
||||
String s1, s2, s3;
|
||||
|
||||
if (admin) {
|
||||
s1 = "🎰";
|
||||
s2 = "🎰";
|
||||
s3 = "🎰";
|
||||
} else {
|
||||
s1 = simbolos[random.nextInt(simbolos.length)];
|
||||
s2 = simbolos[random.nextInt(simbolos.length)];
|
||||
s3 = simbolos[random.nextInt(simbolos.length)];
|
||||
}
|
||||
|
||||
System.out.println("\nA rodar...");
|
||||
|
||||
@@ -296,7 +310,7 @@ public class Mavenproject4 {
|
||||
|
||||
break;
|
||||
// PAR OU ÍMPAR
|
||||
case 3:
|
||||
case 3:
|
||||
while (true) {
|
||||
|
||||
System.out.println("|==========| Par ou Ímpar |==========|");
|
||||
@@ -327,7 +341,21 @@ case 3:
|
||||
saldoAtual -= dinheiroApostado3;
|
||||
atualizarSaldo("utilizadores.txt");
|
||||
|
||||
int numero = random.nextInt(100) + 1;
|
||||
int numero;
|
||||
|
||||
if (admin) {
|
||||
|
||||
if (escolha == 1) {
|
||||
numero = 2;
|
||||
} else {
|
||||
numero = 1;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
numero = random.nextInt(100) + 1;
|
||||
|
||||
}
|
||||
|
||||
System.out.println("Número sorteado: " + numero);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user