Friederike von Gruben
ada95c7e03
unittest: Created test for QuizCommand
This test tests the start/welcome message to the quiz
2 years ago
Friederike von Gruben
915d3829dc
refactoring: Edited method name in QuizCommand
endmessage -> endMessage
*Camel Case Convention
2 years ago
Friederike von Gruben
05693206bd
refactoring: Edited method name in QuizCommand
anfangsnachricht -> starterMessage
2 years ago
Friederike von Gruben
f92d8f5847
Updated quiz message
How long user has to wait to play toward
2 years ago
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
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
Friederike von Gruben
6405c41b32
Added new questions
2 years ago
Friederike von Gruben
ad42f3ff85
Added writeObject method to the JSON Parser to write json objects
2 years ago
David Hermann
13f6640dc7
refactoring: Moved InteractionLoop and JsonParser to the new directory "classes".
Removed test code from JsonParser.
Removed comment in Main
2 years ago
David Hermann
ede261e59d
refactor: Deleted unused imports from Main class
2 years ago
David Hermann
59a36a66a6
unittest: Added unit test for the quit/exit command
2 years ago
David Hermann
b3dfbe3601
refactor: outsourced code in String function
2 years ago
David Hermann
dfc7fae51a
refactor: Deleted unit test for main class.
Removed scanner from main class.
2 years ago
David Hermann
ffca558531
unittest: Added unittest for the help command
2 years ago
David Hermann
5a35f0ee84
refactor: Edited help command
Prepared for unit test, output message is now hardcoded
2 years ago
David Hermann
d46176e8a2
Added the quit command
This command quits the game with exit code 0.
2 years ago
David Hermann
0933a56a4d
Added the help command
This command prints a list of all commands which are available
2 years ago
David Hermann
4038f1bfd5
The game loop is now checking if the command exists.
2 years ago
David Hermann
a878b6ad0d
The boot class will be created now.
2 years ago
David Hermann
41ae408d8c
Created the boot class
After creating an object from this class, the game will start by here.
Added the CommandListener
This listener will add the commands which the game has and will have
2 years ago
David Hermann
7b7f81ec65
Created the game engine
An endless loop where a scanner scans the next line after one action and print it.
2 years ago
David Hermann
b93b246de1
Added CommandAPI interface
This interface is importing one method "performCommand" in all future commands.
performCommand has the following parameters:
- scanner, Scanner
2 years ago
David Hermann
7d3da78ded
Added JSONParser.java to handle read and search for key events.
2 years ago
David Hermann
023a5185cc
Added org.json library to project
Version 20180130
2 years ago
David Hermann
2aaef7f903
refactor: Changed the name of the package.
org.example -> org.bitbiome
2 years ago
David Hermann
945fac0dfa
Added config files for the game with examples:
- crafting.json
- gameconfig.json
- items.json
- playerconfig.json
2 years ago
David Hermann
a9b5c0112a
refactor: Changed the build method of the project in build-project.sh
2 years ago
David Hermann
fcd63455b4
refactor: Deleted the dot in front of "out" and "target" in .gitignore
2 years ago
David Hermann
0f932e797a
Edited .gitignore
Added README.md and team.md
2 years ago
David Hermann
f0f8f7c630
Initial Commit
Created Project
Added JUnit5 to pom.xml
Added build-project.sh
Generated Example Unit Test
2 years ago