Jasmine Lofton#6
Open
jasminelofton wants to merge 5 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- For each of the six deliverables in the README, write a sentence or two about whether you successfully implemented that "feature" and which classes you added or modified to do so. If you were unable to complete a feature, write up a short summary of what you tried and what you think the issue is, for some partial credit.
rooms.yaml, connected to the existing rooms.-Yes. I had to modify rooms.yaml, gamestate, and game to add my 6 new rooms.
GameState.java.-Yes. I added an ending and it is located in the game, gamestate, and room.yaml, I used room called light when entered sets off the trigger to end the game. The game is ended when the door is unlocked.
items in as Items.
items.yaml. CHECKGame/src/test/java/GameTest.java. CHECK- If you do any extra credit features, also write up a short summary of what you did and how your new feature works.
-Not sure if all these are extra credit, but these are the changes I made. I set up a throws exception in case 2 for if the scanner picks up a word that is not a door of the room, instead of breaking the code it will catch it and not update the room until an acceptable door is put in the scanner. I added a quit program button [0] to end the game immediately by modifying the gamestate to detect if [0] is entered by user. I modified the items.yaml class and moved the damage to above the use so the compiler could use the damage input. I also threw an exception for case 5 if the item inputted from scanner is not an actual item, instead of breaking the compiler (I dont remember if it actually broke the compiler or it just did something wierd) it sends the exception. The last thing I did was create a try and catch for the scanner input when the user types 0-5 for "What do you want to do next" options, instead of the system breaking when a letter was accidently put into the scanner, the system now returns the default message and doesn't break anymore (hence why I had to put the [0] end program option to get out of the program without having the complete the whole game to end program).