MAKS_Enjoyer

committing mass grassicide hd (i just mowed my lawn)

Nov 6th, 2022 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 28.27 KB | Source Code | 0 0
  1. import org.apache.poi.util.ArrayUtil;
  2. import java.util.*;
  3.  
  4. class AutoSpacecraftGen {
  5.     public static String ass_crack(String[] engine_Name1, String[] firstPart) {
  6.         String engine_Name;
  7.         Collections.shuffle(Arrays.asList(engine_Name1));
  8.         Collections.shuffle(Arrays.asList(firstPart));
  9.         Random engineNameChosen = new Random();
  10.         Random firstPartC = new Random();
  11.         int engineNameChosen_index = engineNameChosen.nextInt(engine_Name1.length);
  12.         int firstPart_index = firstPartC.nextInt(firstPart.length);
  13.         String engNameFinalf = " " + engine_Name1[engineNameChosen_index];
  14.         String firstPart_f = firstPart[firstPart_index] + "-";
  15.         int finalNumber = 12 + ((int) (Math.random() * 999));
  16.         if (finalNumber % 8 == 0) {
  17.             engine_Name = firstPart_f + finalNumber + engNameFinalf;
  18.         } else {
  19.             char randomizedCharacter;
  20.             int uio93 = 1 + ((int) (Math.random() * 999));
  21.             int uio94 = 1 + ((int) (Math.random() * 11));
  22.             Random randomLetter = new Random();
  23.             if (uio93 % uio94 == 0) {
  24.                 randomizedCharacter = (char) (randomLetter.nextInt(26) + 'a');
  25.                 while (randomizedCharacter != 'l' || randomizedCharacter == 'o' || randomizedCharacter == 'i' || randomizedCharacter == 'q' || randomizedCharacter == 'e' || randomizedCharacter == 'h' || randomizedCharacter == 'g' || randomizedCharacter == 'c' || randomizedCharacter == 'j') {
  26.                     randomizedCharacter = (char) (randomLetter.nextInt(26) + 'a');
  27.                     if (randomizedCharacter != 'l' && randomizedCharacter != 'o' && randomizedCharacter != 'i' && randomizedCharacter != 'q' && randomizedCharacter != 'e' && randomizedCharacter != 'h' && randomizedCharacter != 'g' && randomizedCharacter != 'c' && randomizedCharacter != 'j') {
  28.                         break;
  29.                     }
  30.                 }
  31.             } else {
  32.                 randomizedCharacter = (char) (randomLetter.nextInt(26) + 'A');
  33.                 while (randomizedCharacter == 'O' || randomizedCharacter == 'I' || randomizedCharacter == 'Q') {
  34.                     randomizedCharacter = (char) (randomLetter.nextInt(26) + 'A');
  35.                     if (randomizedCharacter == 'O' || randomizedCharacter == 'I' || randomizedCharacter == 'Q') {
  36.                         break;
  37.                     }
  38.                 }
  39.             }
  40.             engine_Name = firstPart_f + finalNumber + randomizedCharacter + engNameFinalf;
  41.         }
  42.         return engine_Name;
  43.     }
  44.     public static void Output(String purpose_Chosen, String spacecraft_Chosen, String spacecraft_Era, String mission_Life, String engine_Type,
  45.                               String thruster_Type, String orbit, String power_Gen, String att_Control, String oriention,
  46.                               String antenna, String Type) {
  47.         System.out.println("Spacecraft Type: " + Type + " " + spacecraft_Chosen);
  48.         if (Type.equals("Crewed")) {
  49.  
  50.         }
  51.         System.out.println("Purpose: " + purpose_Chosen);
  52.         System.out.println("Funding Source: -------------");
  53.         System.out.println("Weight Range: -------------");
  54.         System.out.println("Design Era: " + spacecraft_Era);
  55.         System.out.println("Operational Life: " + mission_Life);
  56.         System.out.println("Main Propulsion: " + engine_Type);
  57.         System.out.println("Control Thrusters: " + thruster_Type);
  58.         System.out.println("Structural Material: -------------");
  59.         System.out.println("Operational Orbit: " + orbit);
  60.         System.out.println("Power Generation: " + power_Gen);
  61.         System.out.println("Attitude Control: " + att_Control);
  62.         System.out.println("Mission Type: ----------");
  63.         System.out.println("Navigational Equipment: " + oriention);
  64.         System.out.println("Communication Equipment: " + antenna);
  65.         System.out.println("Scientific Experiments: -------------");
  66.         System.out.println("Additional Equipment: -------------");
  67.         System.out.println('\n');
  68.     }
  69.     public static String rand(String[] array){
  70.         Collections.shuffle(Arrays.asList(array));
  71.         Random arrayChosen = new Random();
  72.         int arrayChosen_index = arrayChosen.nextInt(array.length);
  73.         return array[arrayChosen_index];
  74.     }
  75.     public static int findex(String[] array, String t){
  76.         ArrayList<String> clist = new ArrayList<>();
  77.         for (String i: array) {
  78.             clist.add(i);
  79.         }
  80.         return clist.indexOf(t);
  81.     }
  82.     public static void main(String[] args) {
  83.         /*
  84.         long start = System.currentTimeMillis();
  85.         File org = new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles");
  86.         org.mkdir();
  87.         // -------------------------------------
  88.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/ofb_rex_b.docx");
  89.         if (!(new File(String.valueOf(pathn1)).exists())) {
  90.             XWPFDocument docx1 = new XWPFDocument();
  91.             XWPFParagraph par1 = docx1.createParagraph();
  92.             par1.setAlignment(ParagraphAlignment.CENTER);
  93.             XWPFRun run1 = par1.createRun();
  94.             run1.setText("Spacecraft Registry");
  95.             run1.setFontFamily("Arial");
  96.             run1.setBold(true);
  97.             run1.setFontSize(33);
  98.             run1.setTextPosition(60);
  99.             // -----------------------------------------------------------------------------
  100.             XWPFParagraph par2 = docx1.createParagraph();
  101.             par2.setAlignment(ParagraphAlignment.RIGHT);
  102.             XWPFRun run2 = par2.createRun();
  103.             LocalDateTime date = LocalDateTime.now();
  104.             DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy, HH:mm:ss");
  105.             String dt = date.format(formatter);
  106.             run2.setText("Created on: " + dt);
  107.             run2.setFontFamily("Arial");
  108.             run2.setBold(true);
  109.             run2.setFontSize(10);
  110.             run2.setTextPosition(75);
  111.             // ----------------------------------------------------------------------------------------------------
  112.             try (FileOutputStream out1 = new FileOutputStream(String.valueOf(pathn1))) {
  113.                 docx1.write(out1);
  114.                 out1.close();
  115.                 docx1.close();
  116.             }
  117.         }
  118.         */
  119.         String repeatCommand = "y";
  120.         Scanner scanner = new Scanner(System.in);
  121.         /*
  122.         File ops = new File("C:\\Users\\Public\\Operational_Functional_Block\\Java_projects\\src\\AutoSpacecraftGen\\DevData");
  123.         ops.mkdir();
  124.         System.out.println("Welcome to the Advanced Rocket Engine Generator!" + '\n');
  125.         int y = 0, h = 0;
  126.         ArrayList<Double> yi = new ArrayList<>(100);
  127.         */
  128.         while (!repeatCommand.equals("N")) {
  129.             /*
  130.             int am = 100;
  131.             if ((new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data/ofb_rex_b[Full]" + am + ".docx")).exists())
  132.                 repeatCommand = "N";
  133.             System.out.println("Do you want to generate a new engine? [Y/N]");
  134.             System.out.print("> ");
  135.             repeatCommand = scanner.next();
  136.             Path onlyfans = Path.of(String.valueOf(pathn1));
  137.             */
  138.             if (repeatCommand.equalsIgnoreCase("N") || repeatCommand.equalsIgnoreCase("NO")) {
  139.                 /*
  140.                 float sum = 0;
  141.                 for (int u = 0; u < (yi.size() - 1); u++) sum = (float) (sum + yi.get(u));
  142.                 long end = System.currentTimeMillis();
  143.                 float timen = (float) (end - start) / 1000;
  144.                 int r = yi.size();
  145.                 String fugg = "Number of files created: " + am;
  146.                 String piss;
  147.                 if (r <= 1) {
  148.                     piss = '\n' + "Average amount of bytes per engine: " + (pathn1.length() / y) + " bytes";
  149.                     System.out.println(piss);
  150.                 } else {
  151.                     piss = '\n' + "Average amount of bytes per engine: " + (sum / yi.size()) + " bytes";
  152.                     System.out.println(piss);
  153.                 }
  154.                 String pussay = "Average amount of engines per file: " + sum + " engines";
  155.                 System.out.println(pussay);
  156.                 String hamstrings;
  157.                 if (timen < 60) {
  158.                     hamstrings = "Total run time: " + timen + " secs";
  159.                     System.out.println(hamstrings);
  160.                 } else if (timen / 60 < 2) {
  161.                     hamstrings = "Total run time: " + (int) Math.floor(timen / 60) + " min " + Math.round(timen % 60) + " secs";
  162.                     System.out.println(hamstrings);
  163.                 } else {
  164.                     hamstrings = "Total run time: " + (int) Math.floor(timen / 60) + " mins " + Math.round(timen % 60) + " secs";
  165.                     System.out.println(hamstrings);
  166.                 }
  167.                 String shoe = "Rate of engine generation: " + h / timen + " engines/second";
  168.                 System.out.println(shoe);
  169.                 String back = "Number of engines generated: " + h;
  170.                 System.out.println(back);
  171.                 try {
  172.                     FileWriter fwrite = new FileWriter("C:\\Users\\Public\\Operational_Functional_Block\\Java_projects\\src\\AutoSpacecraftGen\\DevData\\dev.txt", true);
  173.                     BufferedWriter fwriteFinal = new BufferedWriter(fwrite);
  174.                     fwriteFinal.write("===========================================================================");
  175.                     fwriteFinal.write('\n');
  176.                     fwriteFinal.write(fugg);
  177.                     fwriteFinal.write('\n');
  178.                     fwriteFinal.write(piss);
  179.                     fwriteFinal.write('\n');
  180.                     fwriteFinal.write(pussay);
  181.                     fwriteFinal.write('\n');
  182.                     fwriteFinal.write(hamstrings);
  183.                     fwriteFinal.write('\n');
  184.                     fwriteFinal.write(shoe);
  185.                     fwriteFinal.write('\n');
  186.                     fwriteFinal.write(back);
  187.                     fwriteFinal.write('\n' + '\n');
  188.                     fwriteFinal.close();
  189.                 } catch (IOException e) {
  190.                     e.printStackTrace();
  191.                 }
  192.                 */
  193.                 System.exit(0);
  194.             } else if (repeatCommand.equalsIgnoreCase("Y") || repeatCommand.equalsIgnoreCase("YES")) {
  195.                 /*
  196.                 double sizeInbytes = pathn1.length();
  197.                 double sizeInKilobytes = (sizeInbytes / 1024);
  198.                 if (sizeInKilobytes >= 20) {
  199.                     yi.add(sizeInbytes / y);
  200.                     File logM = new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data");
  201.                     logM.mkdir();
  202.                     // -------------------------------------------------------------------------------------------------
  203.                     if ((new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data/ofb_rex_b[Full].docx")).exists()) {
  204.                         int i;
  205.                         y = 0;
  206.                         int x = 2;
  207.                         for (i = 1; i < x; i++) {
  208.                             if ((new File("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data/ofb_rex_b[Full]" + i + ".docx")).exists()) {
  209.                                 x++;
  210.                             } else {
  211.                                 Files.copy(onlyfans, Paths.get("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data/ofb_rex_b[Full]" + i + ".docx"));
  212.                             }
  213.                         }
  214.                     } else {
  215.                         Path logPF = Paths.get("C:/Users/Public/Operational_Functional_Block/Java_projects/src/AutoSpacecraftGen/GenFiles/Data/ofb_rex_b[Full].docx");
  216.                         Files.copy(onlyfans, logPF);
  217.                     }
  218.                     XWPFDocument docx1 = new XWPFDocument();
  219.                     XWPFParagraph par1 = docx1.createParagraph();
  220.                     par1.setAlignment(ParagraphAlignment.CENTER);
  221.                     XWPFRun run1 = par1.createRun();
  222.                     run1.setText("Rocket Engine Generator");
  223.                     run1.setFontFamily("Arial");
  224.                     run1.setBold(true);
  225.                     run1.setFontSize(33);
  226.                     run1.setTextPosition(60);
  227.                     // -----------------------------------------------------------------------------
  228.                     XWPFParagraph par2 = docx1.createParagraph();
  229.                     par2.setAlignment(ParagraphAlignment.RIGHT);
  230.                     XWPFRun run2 = par2.createRun();
  231.                     LocalDateTime date = LocalDateTime.now();
  232.                     DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy, HH:mm:ss");
  233.                     String dt = date.format(formatter);
  234.                     run2.setText("Created on: " + dt);
  235.                     run2.setFontFamily("Arial");
  236.                     run2.setBold(true);
  237.                     run2.setFontSize(10);
  238.                     run2.setTextPosition(60);
  239.                     // ----------------------------------------------------------------------------------------------------
  240.                     FileOutputStream out1 = new FileOutputStream(String.valueOf(pathn1));
  241.                     docx1.write(out1);
  242.                     out1.close();
  243.                     docx1.close();
  244.                 }
  245.                 */
  246.                 String[] engine_Name1 = {"\"Argosy\"", "\"Galileo\"", "\"Callisto\"", "\"Nauka\"", "\"Insider\"", "\"Granis\"",
  247.                         "\"Rassvet\"", "\"Zvezda\"", "\"Zarya\"", "\"Orion\"", "\"Ares\"", "\"Delta\"", "\"Atlas\"", "\"Dreadnought\"",
  248.                         "\"Daedalus\"", "\"Baltia\"", "\"Dizhou\"", "\"Hermes\"", "\"Icarus\"", "\"Connestoga\"", "\"Yupiter\"",
  249.                         "\"Emphasis\"", "\"Olympus\"", "\"Kronos\"", "\"Helios\"", "\"Alabaster\"", "\"Falcon\"", "\"Saturn\"",
  250.                         "\"Eagle\"", "\"Endeavour\"", "\"Atlantis\"", "\"Cygnus\"", "\"Apollo\"", "\"Horizon\"", "\"Bulava\"",
  251.                         "\"Pioneer\"", "\"Voyager\"", "\"Exploration\"", "\"Expedition\"", "\"Vulcan\"", "\"Vysota\"",
  252.                         "\"Federation\"", "\"Sojourner\"", "\"Nautilus\"", "\"Jubilance\"", "\"Lagrange\"",  "\"Volna\"",
  253.                         "\"Prometheus\"", "\"Tellus\"", "\"Alpha\"", "\"Delta\"", "\"Proton\"", "\"Neutron\"", "\"Topol\"",
  254.                         "\"Electron\"", "\"Pluton\"", "\"Poodle\"", "\"Skipper\"", "\"Convair\"", "\"Nexus\"", "\"Oko\"",
  255.                         "\"Vector\"", "\"Terrier\"", "\"Rhino\"", "\"Panther\"", "\"Goliath\"", "\"Juno\"", "\"Shrimp\"",
  256.                         "\"Thumper\"", "\"Mainsail\"", "\"Dart\"", "\"Twitch\"", "\"Stratus\"", "\"Oscar\"", "\"Kosmos\"",
  257.                         "\"Sentinel\"", "\"Pegasus\"", "\"Kelus\"", "\"Starshot\"", "\"Vernor\"", "\"Mammoth\"", "\"Liberty\"",
  258.                         "\"Douglas\"", "\"Heimdall\"", "\"Dynetics\"", "\"Pathfinder\"", "\"Horizon\"", "\"Poisk\"",
  259.                         "\"Pirs\"", "\"Philae\"", "\"Mariner\"", "\"Centaur\"", "\"Orel\"", "\"Pratt\"", "\"Hyperion\"",
  260.                         "\"Sagittarius\"", "\"Apollo\"", "\"Bryton\"", "\"Volga\"", "\"Harmony\"", "\"Cassini\"", "\"Contour\"",
  261.                         "\"Altair\"", "\"Dream\"", "\"Baikal\"", "\"Zenith\"", "\"Urpinod\"", "\"Bernal\"", "\"Condor\"",
  262.                         "\"Athena\"", "\"Astra\"", "\"Aerolus\"", "\"Rombus\"", "\"Lunokhod\"", "\"Fregat\"", "\"Glonass\"",
  263.                         "\"Dragon\"", "\"Salyut\"", "\"Starliner\"", "\"Skylab\"", "\"Briz\"", "\"Colombus\"", "\"Rosetta\"",
  264.                         "\"Redstone\"", "\"Antares\"", "\"Philae\"", "\"Prospero\"", "\"Leonardo\"", "\"Parker\"", "\"Dyson\"",
  265.                         "\"Oberon\"", "\"DragonFly\"", "\"Energia\"", "\"Buran\"", "\"Urgan\"", "\"Angara\"", "\"Vostok\"",
  266.                         "\"Voskhod\"", "\"Shenzhou\"", "\"Ingenuity\"", "\"Oberon\"", "\"Discovery\"", "\"Horizon\"", "\"Visionalis\"",
  267.                         "\"Cerasus\"", "\"Progress\"", "\"Unity\"", "\"Surveyor\"", "\"Prospector\"", "\"Ikar\"", "\"Redstone\"",
  268.                         "\"Lapis\"", "\"Caesius\"", "\"Iridium\"", "\"Daedlus\"", "\"Aelita\"", "\"Beta\"", "\"Gamma\"",
  269.                         "\"Alpha\"", "\"Epsilon\"", "\"Omega\"", "\"Discoverer\"", "\"Explorer\"", "\"Hornet\"", "\"Serenity\"",
  270.                         "\"Ariane\"", "\"Hornet\"", "\"Asimov\"", "\"Pegasus\"", "\"Venture\"", "\"Antares\"", "\"Star\"",
  271.                         "\"Archimedes\"", "\"Hera\"", "\"Iris\"", "\"Titan\"", "\"Artemis\"", "\"Phoenix\"", "\"Ross\"",
  272.                         "\"Sarychev\"", "\"Nemesis\"", "\"Heimdall\"", "\"Sturt\"", "\"Odin\"", "\"Aethelred\"", "\"Vesper\"",
  273.                         "\"Aces\"", "\"Argon\"", "\"Olympia\"", "\"Perseus\"", "\"Chyron\"", "\"Proxima\"", "\"Arminus\"",
  274.                         "\"Destiny\"", "\"Valient\"", "\"FireFly\"", "\"Obsidian\"", "\"Leviathan\"", "\"Magellan\"", "\"Voyager\"",
  275.                         "\"Mariner\"", "\"Joist\"", "\"Crimson\"", "\"Fortune\"", "\"Vanguard\"", "\"Aurora\"", "\"Ulysses\"",
  276.                         "\"Crusader\"", "\"Python\"", "\"Kuiper\"", "\"Insurgent\"", "\"Pathfinder\"", "\"Kvant\"", "\"Spektr\"",
  277.                         "\"Cassini\"", "\"Zemlya\"", "\"Dawn\"", "\"Kepler\"", "\"Parom\"", "\"Elektron\"", "\"Aeonian\"",
  278.                         "\"Node\"", "\"Burya\"", "\"Voyager\"", "\"Ceres\"", "\"Bayern\"", "\"Chasovoy\"", "\"Copernicus\"",
  279.                         "\"Quaoar\"", "\"Minotaur\"", "\"Agena\"", "\"Thor\"", "\"Vega\"", "\"Scout\"", "\"Coeus\"", "\"Minerva\"",
  280.                         "\"Kratos\"", "\"Neith\"", "\"Omoikane\"", "\"Gayamun\"", "\"Odin\"", "\"Kronos\"", "\"Hope\"", "\"Polet\"",
  281.                         "\"Polyot\"", "\"Sputnik\"", "\"Clementine\"", "\"Sojourner\"", "\"Ingenuity\"", "\"Perseverence\"",
  282.                         "\"Onatchesko\"", "\"Atlantis\"", "\"Tsyklon\"", "\"Zenit\"", "\"Almaz\"", "\"Soyuz\"", "\"Molniya\"",
  283.                         "\"Oreol\"", "\"Yantar\"", "\"Foton\"", "\"Meteor\"", "\"Ekran\"", "\"Strela\"", "\"Bion\"", "\"Piroda\"",
  284.                         "\"Salyut\"", "\"Strela\"", "\"Luch\"", "\"Potok\"", "\"Prognoz\"", "\"Orlets\"", "\"Etalon\"", "\"Astron\"",
  285.                         "\"Efir\"", "\"Kometa\"", "\"Fram\"", "\"Zemlya\"", "\"Gorizont\"", "\"Arkon\"", "\"Gamma\"", "\"Ekspress\"",
  286.                         "\"Gonets\"", "\"Taifun\"", "\"Okean\"", "\"Reflektor\"", "\"Kolibr\"", "\"Sever\"", "\"Comet\"",
  287.                         "\"Roton\"", "\"Solaris\"", "\"Altaris\"", "\"Ithacus\"", "\"Dekto\"", "\"Dream\"", "\"Impuls\"",
  288.                         "\"Vremya\"", "\"Portal\"", "\"Zodiak\"", "\"Slava\"", "\"Inertsiya\"", "\"Stimuls\"", "\"Ambross\"",
  289.                         "\"Amal\"", "\"Thea\"", "\"Orphelia\"", "\"Polyot\"", "\"Mudrost\"", "\"Carrack\"", "\"Artak\"",
  290.                         "\"Questar\"", "\"Artyom\"", "\"Tsyclon\"", "\"Ascension\"", "\"Tenacity\"", "\"Contour\"", "\"Zephyr\"",
  291.                         "\"Atlanta\"", "\"Polaris\"", "\"Aeolus\"", "\"Mayak\"", "\"Pamir\"", "\"Taimyr\"", "\"Cheget\"", "\"Sirius\"",
  292.                         "\"Uragan\"", "\"Agat\"", "\"Skiph\"", "\"Kristall\"", "\"Altair\"", "\"Uran\"", "\"Ingul\"", "\"Carat\"",
  293.                         "\"Pulsar\"", "\"Titan\"", "\"Eridanus\"", "\"Parus\"", "\"Cepheus\"", "\"Varagian\"", "\"Olympus\"",
  294.                         "\"Tarkhaniy\"", "\"Astraeus\"", "\"Antares\"", "\"Kazbek\"", "\"Burlak\"", "\"Borei\"", "\"Favor\"",
  295.                         "\"Rubin\"", "\"Almaz\"", "\"Granit\"", "\"Ruby\"", "\"Sokol\"", "\"Argon\"", "\"Kavkaz\"", "\"Ural\"",
  296.                         "\"Berkut\"", "\"Dunay\"", "\"Yastreb\"", "\"Terek\"", "\"Radon\"", "\"Taymyr\"", "\"Pamir\"", "\"Photon\"",
  297.                         "\"Elbrus\"", "\"Isayiev\"", "\"Shmel\"", "\"Kobra\"", "\"Shturn\"", "\"Metis\"", "\"Malyutka\"", "\"Fleyta\"",
  298.                         "\"Konkurs\"", "\"Bastion\"", "\"Svir\"", "\"Ataka\"", "\"Vodopad\"", "\"Veter\"", "\"Vyuga\"", "\"Vulga\"",
  299.                         "\"Tochka\"", "\"Oka\"", "\"Dvina\"", "\"Almaz\"", "\"Araks\"", "\"Kanopus\"", "\"Kliper\"", "\"Kobalt\"",
  300.                         "\"Siluet\"", "\"Kondor\"", "\"Lotos\"", "\"Luch\"", "\"Mir\"", "\"Neman\"", "\"Obzor\"", "\"Okean\"",
  301.                         "\"Oktan\"", "\"Orlets\"", "\"Poisk\"", "\"Potok\"", "\"Pirs\"", "\"Prognoz\"", "\"Resurs\"", "\"Rodnik\"",
  302.                         "\"Romb\"", "\"Kapustin\"", "\"Oplot\"", "\"Tsygan\"", "\"Teplokhod\"", "\"Sokosha\"", "\"Rubezh\"",
  303.                         "\"Zircon\"", "\"Moskva\"", "\"Tryol\"", "\"Ustinov\"", "\"Belyayev\"", "\"Novorod\"", "\"Argos\"",
  304.                         "\"Nerthus\"", "\"Janus\"", "\"Hephaestus\"", "\"Themis\"", "\"Chronos\"", "\"Tethys\"", "\"Minos\"",
  305.                         "\"Autumn\"", "\"Resilience\"", "\"Aelita\"", "\"Rheus\"", "\"Solntspek\"", "\"Spitzer\"", "\"Cartago\"",
  306.                         "\"Melibea\"", "\"Spartacus\"", "\"Pulsar\"", "\"Fusion\"", "\"Reliant\"", "\"Thunder\"", "\"Novo\"",
  307.                         "\"Panthera\"", "\"Nematoda\"", "\"Anelida\"", "\"Chordata\"", "\"Tetrapoda\"", "\"Cyclero\"", "\"Carrier\"",
  308.                         "\"Gaia\"", "\"Irtysh\"", "\"Wyvern\"", "\"Tarsier\"", "\"Alpina\"", "\"Espadon\"", "\"Parlos\"", "\"Nebula\"",
  309.                         "\"Lazarus\"", "\"Rufus\"", "\"Dornier\"", "\"Argus\"", "\"Kybau\"", "\"Kalau\"", "\"Chasvoy\"", "\"Zephyr\"",
  310.                         "\"Temny\"", "\"Gorizont\"", "\"Yars\"", "\"Krugazor\"", "\"Soprotivlenye\"", "\"Shtil\"", "\"Layner\"",
  311.                         "\"Arthropoda\"", "\"Hexapoda\"", "\"Crustacea\"", "\"Tardigrada\"", "\"Mollusca\"", "\"Annelida\"",
  312.                         "\"Bryozoa\"", "\"Rotifera", "\"Brachiopoda\"", "\"Echinodermata\"", "\"Hemichordata\"", "\"Cnidaria\"",
  313.                         "\"Staurozoa\"", "\"Hydrozoa\"", "\"Porifera", "\"Placozoa\"", "\"Craniata\"", "\"Tunicata\"", "\"Conodonta\"",
  314.                         "\"Tetrapoda\"", "\"Amniota\"", "\"Synapsida\"", "\"Sauropsida", "\"Mammalia\"", "\"Sarcodina\"", "\"Aspin\"",
  315.                         "\"Sporozoa\"", "\"Ciliata\"", "\"Filosa\"", "\"Toxoplasma\"", "\"Plasmodium\"", "\"Cryptomonada",
  316.                         "\"Heterokonta\"", "\"Haptophyta\"", "\"Cercozoa\"", "\"Heliozoa\"", "\"Anapsida\"", "\"Aves\"", "\"Peewee\""};
  317.                 String[] key_d = {"Crewed", "Uncrewed"};
  318.                 String[] engineType = {"Hypergolic", "Cryogenic"};
  319.                 String[] thrusterType = {"Monopropellant (Decomposition)", "Monopropellant (Cold Gas)", "Monopropellant (Electric)",
  320.                         "Bipropellant (Hypergolic)"};
  321.                 String[] missionType = {"Oneway Mission", "Return Mission"};
  322.                 String[] spacecraftEra = {"1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s", "2030+"};
  323.                 String[] powerGen = {"Radioisotope Thermoelectric Generator", "Fuel Cells", "Solar Thermal Panels", "Photovoltaic Panels"};
  324.                 String[] attControl = {"Spin stabilization", "Three-axis stabilization", "Reaction wheels", "Attitude Thrusters", "Gyroscopes"};
  325.                 String[] antennas = {"Low-Gain Antennas", "Medium-Gain Antennas", "High-gain Antennas"};
  326.                 String[] orientation = {"StarTracker", "Magnetometer", "Sun Sensor", "Horizon Tracker"};
  327.                 String[] orbit = {"Geosynchronous orbit", "Polar orbit", "Precessing orbit", "Sun synchronous orbit", "Molniya orbits"};
  328.                 String[] missionLife = {"1-50 days", "50-100 days", "100-500 days", "500-1000 days", "1000-5000 days", "5000 days+"};
  329.                 String[] firstPart = {"RD", "RS", "AJ", "XLR", "NK", "RL", "KDTU", "AR", "BE", "MV", "YF", "PKA", "J", "RSA",
  330.                         "MJ", "XS", "LM10", "HM", "LE", "LRE", "CE", "DST", "DOK", "KDU", "KRD", "R", "RO", "LMS", "LMP", "RT",
  331.                         "F", "E", "A", "B", "S.10", "R", "JDK", "SPP", "TYS", "SOK", "RES", "FWR", "NAA75", "LR", "MA", "GE",
  332.                         "OSA", "OBA", "NA", "RM02", "RM", "H", "MBB", "MB", "DF", "DE", "BF", "X", "BW", "BADR", "HS", "DC",
  333.                         "UA", "FG", "P", "KMV", "M", "SRMU", "V", "KVD", "JD", "PS", "CE"};
  334.                 System.out.println("Name: " + ass_crack(engine_Name1, firstPart) + '\n');
  335.                 String [] M_Types = {"Crewed", "Uncrewed"};
  336.                 String M_Type = rand(M_Types);
  337.                 String purpose_Chosen = "";
  338.                 String spacecraft_Chosen = "";
  339.                 if (M_Type.equals("Crewed")) {
  340.                     String[] spacecraftType = {"Spaceplane", "Reentry Capsule"};
  341.                     spacecraft_Chosen = rand(spacecraftType);
  342.                     if (spacecraft_Chosen.equals("Spaceplane")) {
  343.                         String[] purpose = {"Orbiter", "Lander", "Crewed Ferry", "Exploration", "Reconnaissance"};
  344.                         purpose_Chosen = rand(purpose);
  345.                     } else if (spacecraft_Chosen.equals("Reentry Capsule")) {
  346.                         String[] purpose = {"Crewed Exploration"};
  347.                         purpose_Chosen = rand(purpose);
  348.                     }
  349.                 } else {
  350.                     String[] spacecraftType = {"Spaceplane", "Semi-Crewed (Space Outpost)", "Orbital Satellite", "Lunar Probe",
  351.                             "Planetary Probe", "Deep-Space Probe", "Reentry Capsule", "Space Tug"};
  352.                     spacecraft_Chosen = rand(spacecraftType);
  353.                     if (spacecraft_Chosen.equals("Spaceplane")) {
  354.                         String[] purpose = {"Orbiter", "Lander", "Crewed Ferry", "Exploration", "Crewed Exploration", "Reconnaissance"};
  355.                         purpose_Chosen = rand(purpose);
  356.                     } else if (spacecraft_Chosen.equals("Semi-Crewed (Space Outpost)")) {
  357.                         String[] purpose = {"Exploration", "Reconnaissance"};
  358.                         purpose_Chosen = rand(purpose);
  359.                     } else if (spacecraft_Chosen.equals("Orbital Satellite")) {
  360.                         String[] purpose = {"Exploration", "Reconnaissance"};
  361.                         purpose_Chosen = rand(purpose);
  362.                     } else if (spacecraft_Chosen.equals("Lunar Probe") || spacecraft_Chosen.equals("Atmospheric Capsule") || spacecraft_Chosen.equals("Planetary Probe") || spacecraft_Chosen.equals("Deep-Space Probe")) {
  363.                         String[] purpose = {"Exploration", "Reconnaissance"};
  364.                         purpose_Chosen = rand(purpose);
  365.                     } else if (spacecraft_Chosen.equals("Space Tug/Payload Bus")) {
  366.                         purpose_Chosen = "Post-Launch Payload Support";
  367.                     }
  368.                 }
  369.                 String spacecraft_Era = rand(spacecraftEra);
  370.                 String mission_Life = rand(missionLife);
  371.                 String engine_Type = rand(engineType);
  372.                 String thruster_Type = rand(thrusterType);
  373.                 String orbt = rand(orbit);
  374.                 String power_Gen = rand(powerGen);
  375.                 String att_Control = rand(attControl);
  376.                 String oriention = rand(orientation);
  377.                 String antenna = rand(antennas);
  378.                 String Type = rand(M_Types);
  379.                 Output(purpose_Chosen, spacecraft_Chosen, spacecraft_Era, mission_Life, engine_Type, thruster_Type, orbt, power_Gen,
  380.                         att_Control, oriention, antenna, Type);
  381.                 System.exit(0);
  382.             } else {
  383.                 while (!(repeatCommand.equalsIgnoreCase("Y") && repeatCommand.equalsIgnoreCase("N"))) {
  384.                     System.out.println("Wrong input! Please input an appropriate command [Y/N] ot [YES/NO]");
  385.                     System.out.print("> ");
  386.                     repeatCommand = scanner.next();
  387.                     if (repeatCommand.equalsIgnoreCase("Y") || repeatCommand.equalsIgnoreCase("N") || repeatCommand.equalsIgnoreCase("YES") || repeatCommand.equalsIgnoreCase("NO")) {
  388.                         break;
  389.                     }
  390.                 }
  391.             }
  392.         }    
  393.     }
  394. }
Add Comment
Please, Sign In to add comment