This code defines a class named GameLibraryPreservationSystem that stores information...

May 12, 2024 at 06:30 AM

import java.util.*; import java.util.Scanner; public class GameLibraryPreservationSystem { private static final ArrayList<String> UserSavedGames = new ArrayList<>(); //STORES USER'S SAVED GAMES private static final String[] GENRES_EVERYONE = {"Adventure", "Puzzle", "Strategy", "Simulation"}; private static final String[] GENRES_TENPLUS = {"Action", "Adventure", "Horror" ,"Puzzle"}; private static final String[] GENRES_TEEN = {"Action", "Adventure", "Horror" , "Survival"}; private static final String[] GENRES_MATURE = {"Action", "Adventure", "Horror", "Strategy"}; private static final String[][] GAMES_EVERYONE = { {"Summer in Mara", "Cave Story", "Monument Valley"}, {"Human: Fall Flat", "Mekorama", "Cut the Rope"}, {"Plants VS. Zombies", "Angrybirds", "The Ants: Underground Kingdom"}, {"Animal Crossing", "Moving Out", "Cooking Mama: Sweet Shop"}}; private static final String[][] GAMES_TENPLUS = { {"Resident Evil 2", "Hollow Knight", "Super Mario Odyssey"}, {"Forgotten Anne", "The Pathless", "Limbo"}, {"Troll Face Quest", "OXENFREE", "Five Nights at Freddy's"}, {"Where's my Water?", "Puyo puyo Tetris", "Gorogoa"}}; private static final String[][] GAMES_TEEN = { {"Assasin's Creed", "Dead Cells", "Ape Out"}, {"Stardew Valley", "Life is Strange", "Little Nightmares"}, {"Pacify", "7 Days to Die", "Slender: The Arrival"}, {"Grounded", "The Long Dark", "This War of Mine"}}; private static final String[][] GAMES_MATURE = { {"Mortal Kombat I", "Red Dead Redemption", "Katana Zero"}, {"The Walking Dead", "Elden Ring", "Silent Hill 2"}, {"Don't Scream", "Outlast", "Manhunt"}, {"Hell Let Loose", "Aliens Dark Descent", "Company of Heroes 3"}}; private static final String[][] DESCRIPTIONS_EVERYONE = { {"Mix farming, crafting and exploring mechanics in a \n tropical archipelago with a colorful style and strong narrative.", "Focuses on an amnesiac protagonist who awakens in a cave.\n Through his explorations, he discovers a plot by the Doctor, \n a megalomaniac who intends to force the inhabitants of \n the cave to fight for him in his bid to conquer the world.", "A minimalistic award-winning puzzle game developed \n by ustwo.It centers around Princess Ida navigating through \n seemingly impossible mazes by interacting with her surroundings."}, {"A hilarious, light-hearted physics platformer set \n in a world of floating dreamscapes. \n Each dream level provides a new environment to navigate, \n from mansions, castles and Aztec adventures to snowy \n mountains, eerie nightscapes and industrial locations.", "Players control the movement of a robot through \n paths and various obstacles to reach the end of a level \n by tapping or clicking the screen. \n The game features a level editing tool, \n where players can create custom levels and share them online.", "Feed candy to a little green creature while \n collecting stars. On each stage, a candy is hung by one or several ropes, \n which the player can cut. The goal of each stage is to get the candy \n to a green monster named Om Nom by cutting the ropes in a \n particular order while utilizing the game's physics to get the candy to Om Nom."}, {"A defense video game in which the player \n defends their suburban home from zombies.", "The player controls a flock of multi-colored \n birds that are attempting to save their eggs from green-colored pigs.", "You are the ultimate Ant Ruler to build the Anthill, \n lead the Queen, grow the colony, and defend against enemies"}, {"A social simulation game, dubbed a communication game by Nintendo. \n It is open-ended, and the player's character can live a separate life \n with very little set plot or mandatory tasks. \n Players assume the role of a new resident to the town.", "Players take on the role of movers, moving marked furniture and appliances \n (such as couches, refrigerators, and microwaves) from a house to a moving truck under a time limit. \n Along the way, obstacles (such as rakes, fires, ice, and even ghosts) may be encountered.", "Player

This code defines a class named GameLibraryPreservationSystem that stores information about user's saved games, genres, games suitable for different age groups, and descriptions of the games. It includes arrays for genres such as Adventure, Puzzle, Strategy, Simulation, Action, Horror, Survival, and more, along with corresponding arrays of games and descriptions for each age group.

Generate your own explanations
Download our vscode extension
Read other generated explanations

Built by @thebuilderjr
Sponsored by beam analytics
Read our terms and privacy policy
Forked from openai-quickstart-node