Added several improvements X

This commit is contained in:
Robert Vokac 2024-01-13 13:33:20 +00:00
parent 1f1b680266
commit ce0a2349c4
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055
2 changed files with 8 additions and 4 deletions

3
deploy.sh Normal file
View File

@ -0,0 +1,3 @@
mvn clean package
mv target/*.jar C:/Users/Robert/Desktop/rv
rm -r target

View File

@ -179,9 +179,9 @@ public class Main {
int spacesDone = (int) (percent * 52);
int spacesTodo = spacesTotal - spacesDone;
System.out.println(
WALL + createSpaces(spacesDone) + " () " + createOneZeroes(spacesTodo) + WALL + (spacesTodo == 0 ? "*GO*" :"XXXX") + WALL + NEW_LINE +
WALL + createSpaces(spacesDone) + "/||\\" + createOneZeroes(spacesTodo) + WALL + (spacesTodo == 0 ? "HOME" :"XXXX") + WALL + NEW_LINE +
WALL + createSpaces(spacesDone) + " /\\ " + createOneZeroes(spacesTodo) + WALL + (spacesTodo == 0 ? "!!!!" :"XXXX") + WALL + NEW_LINE +
WALL + createSpaces(spacesDone) + " () " + createSpaces(spacesTodo) + WALL + (spacesTodo == 0 ? "*GO*" :"XXXX") + WALL + NEW_LINE +
WALL + createSpaces(spacesDone) + "/||\\" + createSpaces(spacesTodo) + WALL + (spacesTodo == 0 ? "HOME" :"XXXX") + WALL + NEW_LINE +
WALL + createSpaces(spacesDone) + " /\\ " + createSpaces(spacesTodo) + WALL + (spacesTodo == 0 ? "!!!!" :"XXXX") + WALL + NEW_LINE +
"=================================================================="
);
@ -201,7 +201,8 @@ public class Main {
private static final String createOneZeroes(int count) {
StringBuilder sb = new StringBuilder();
for(int i = 1; i <= count; i++) {
sb.append(Math.random() > 0.5 ? "1" : "0");
double random = Math.random();
sb.append(random > 0.66 ? "1" : (random > 0.33 ? "0" : "1"));
}
return sb.toString();
}