Friederike von Gruben
7ccb7ee304
refactoring: Outsourced code
Outsourced ending quiz message
2 years ago
Friederike von Gruben
b4ff7a5d2a
refactoring: Outsourced code
Outsourced starter quiz message
2 years ago
David Hermann
7ec0382539
unittest: Created test for cyan code
2 years ago
David Hermann
76aeb8fc0f
unittest: Created test for blue color
2 years ago
David Hermann
23c162d524
unittest: Created test for important color codes
2 years ago
David Hermann
3e4259170c
refactoring: Added comments to QuitCommand
2 years ago
David Hermann
b26a43dfcb
refactoring: Added comments to CommandListener
2 years ago
David Hermann
ad5f87a4b0
refactoring: Added comments to CommandInterface
2 years ago
David Hermann
460fc71570
refactoring: Added comment to Color
2 years ago
David Hermann
9ebe7ea258
refactoring: Outsourced System.out.println
2 years ago
David Hermann
fda96a5acb
refactoring: Deleted CreateLocations
2 years ago
David Hermann
d6ece832e7
refactoring: Outsourced code
When the player is new a outsourced method is called
2 years ago
David Hermann
4e990e2d04
refactoring: Outsourced code in InteractionLoop
Whether the player is new or not will be checked in new outsourced function
2 years ago
David Hermann
1749b5f663
refactoring: Outsourced System.out.println
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
David Hermann
21f5b7d44c
unittest: updated mob test
This additionally tests how much damage the mob does
2 years ago
David Hermann
562bd31373
unittest: created test for mob class
This tests whether the mob is friendly
2 years ago
David Hermann
432c37c278
unittest: updated item test
This additionally tests whether the item does any damage at all.
2 years ago
David Hermann
8a380d1ef3
unittest: updated item test
This additionally tests the damage of the items
2 years ago
David Hermann
56fb3c546c
unittest: created test for item class
This is testing the name of the item
2 years ago
David Hermann
62ddc0bd3c
Update Player.java
Added empty constructor for unit tests
2 years ago
David Hermann
7131083fd9
Update Mob.java
Added empty constructor for unit tests
2 years ago
David Hermann
5e723f41b3
Update Location.java
Added empty constructor for unit tests
Added setName() method for unit tests
2 years ago
David Hermann
ce6247312e
Update Item.java
Changed the privacy of the variables
Added empty constructor for unit tests
2 years ago
Max Gerbeth
8407682f16
unittest: testSubtractGold17()
2 years ago
Max Gerbeth
e10321a9c2
unittest: testSubtractGold16()
2 years ago
David Hermann
d09e3b1c2d
refactoring: Removed unused imports
2 years ago
David Hermann
c7b8855442
refactoring: Language change, added color
When a command is unkown, the language is now german and the message is red.
2 years ago
David Hermann
67822c0a8e
refactoring: Deleted unused imports
2 years ago
Max Gerbeth
f5784b40d2
refactoring: ShopCommand.java
2 years ago
Max Gerbeth
6d837c934c
adding Colors to prints on the console
2 years ago
Max Gerbeth
99fd247d40
using JsonPaser for writing in the file
2 years ago
Max Gerbeth
4690348bd7
Merge branch 'develop' into shop
# Conflicts:
# src/main/java/org/bitbiome/commands/CommandListener.java
2 years ago