fdai7430
eac126198b
refactoring: Made UseCommand.java compliant to POSIX 3.206
2 years ago
Juliakn66
1cdca21f4f
unittest: added testGetMobsOutputWithoutMobsAndItems()
2 years ago
Juliakn66
d704d962a8
unittest: added testGetMobsOutputWithMobs()
2 years ago
Juliakn66
fbae51a716
unittest: added testGetItemsOutputWithoutItems()
2 years ago
Juliakn66
340fb80cc6
unittest: added testGetItemsOutputWithItems()
2 years ago
Juliakn66
42e710c76d
unittest: added testGetRandomMob()
2 years ago
Juliakn66
e8842e54cd
unittest: added testGetLocationObject ro LookaroundCommandTest
2 years ago
Juliakn66
363112a364
unittest: test for collect Command
testIncreaseAmountOfPlayerConfig()
2 years ago
Juliakn66
4322292198
added collectCommand to HelpCommand and HelpCommandTest
2 years ago
Juliakn66
346155ab00
refactoring: added new method writeNewItem() to collectCommand.java
2 years ago
Juliakn66
8fe445b5f8
refactoring: created method increaseAmountInPlayerConfig() in CollectCommand.java
2 years ago
Juliakn66
11e9541a1f
refactoring: replace code for more readability
2 years ago
Juliakn66
986151d614
implementing method collectItem() in collectCommand.java
2 years ago
Juliakn66
2deb02b591
updated CollectCommand.java: generate a user input to collect specific item
2 years ago
Juliakn66
ec1ee44981
edited method collectItem() of CollectCommand
2 years ago
Juliakn66
841665d081
created method collectItem() to collectCommand
2 years ago
Tanja Herche
1d581ea146
Unittest: changed deception map
2 years ago
Tanja Herche
65e91f11b8
refactoring: removed String-separations
2 years ago
Tanja Herche
b6d57e2cf5
Unittest: Coloring
2 years ago
Tanja Herche
d4c2fb9496
Integrated Locations
2 years ago
Tanja Herche
9166dc2d18
Unittest: integrate TravelEngine and Player
2 years ago
Juliakn66
f9a4bef143
added lookaroundCommand to helpCommand and helpCommandTest
2 years ago
Juliakn66
b8ddcdd879
refactoring: create new method getMobsOutput() to LookaroundCommand
2 years ago
Juliakn66
bf28336b77
refactoring: create new method getItemsOutput to lookaroundCommand.java
2 years ago
Juliakn66
1b1b9af898
refactoring: create new method getRandomMob() to LookaroundCommand.java
2 years ago
Juliakn66
2d13de8429
refactoring: created new method getRandomItem()
2 years ago
Juliakn66
5d8d6b764e
refactoring: created method getLocationObject()
2 years ago
Juliakn66
8370dc59b2
added output of randomItems, randomMobs, and description of location
2 years ago
Juliakn66
f6fb656ecd
generate random mobs and items in Lookaround Command()
2 years ago
Juliakn66
8bb9367d7b
updated LookaroundCommand()
get ArrayList of currentLocation of Player
2 years ago
Juliakn66
577c2a61ec
added CollectCommand to CommandListener
2 years ago
Juliakn66
b8b4b6ea25
create CollectCommand.java
2 years ago
Friederike von Gruben
d08bdb85e0
refactoring: Outsourced time feature
The time feature for the quiz has a seperate method now which returns the difference of the current time and the time you played the last time. If the difference is greater than 0 you can't play.
2 years ago
Friederike von Gruben
b4cc87b7ca
Added time feature for quiz
You have to wait a min time after you can play the quiz again. Currently 5 minutes
2 years ago
Friederike von Gruben
eadd9316e1
refactoring: Outsourced gold method
The method to add gold after your answer was right is now in a seperate method
2 years ago
Friederike von Gruben
949d479d9c
Earn gold with quiz
You can earn some gold with your quiz now
2 years ago
Friederike von Gruben
c720c4836f
refactoring: Outsourced Code
Generating the question with possible answers now in outsourced method
2 years ago
Friederike von Gruben
96715d3f43
refactoring: Edited code structure
Outsourced the generating random number method
2 years ago
Friederike von Gruben
37ad1c9b1e
refactoring: Created print method
This method is printing a messag to the console and returning the same message
2 years ago
Friederike von Gruben
34c135d54c
refactoring: Outsourced code
Whether the answer is correct or not is outsourced now
2 years ago
Friederike von Gruben
50784178b3
Update QuizCommand.java
Getting userinput and checking whether answer is correct
2 years ago
Friederike von Gruben
803ed2f6fc
Update QuizCommand.java
Random question picked from json file and printed out with answeres
2 years ago
Friederike von Gruben
cb3c5b402e
refactoring: Updated Json File
Added lastPlayed keyword
2 years ago
Friederike von Gruben
ed0debe9fa
Created new Command: Quiz
2 years ago
Friederike von Gruben
083e9ae00e
refactoring: Updated JsonParser
Edited method name
Now working with relative paths
2 years ago
David Hermann
1ded07cd00
unittest: updated player test
This additionally tests if the player has a location by testing the name of the location related to the player
2 years ago
David Hermann
df4b960fa7
unittest: updated player test
This additionally tests how many lives the player has
2 years ago
David Hermann
9acf819d35
unittest: created test for player class
This tests the name of the player
2 years ago
David Hermann
8dda2401d1
unittest: created test for location class
This tests the name of the location
2 years ago
David Hermann
06c77bf837
unittest: updated mob test
This additionally tests how much life the mob has
2 years ago