Friederike von Gruben
bfe11ff7d9
unittest: Added test to BlackJackTest
This tests whether the player is in the game or not
2 years ago
Friederike von Gruben
44b4ac4d9b
unittest: Added test to BlackJackTest
This tests the bot name of BlackJack
2 years ago
Friederike von Gruben
c6d9d282a1
unittest: Added test to BlackJackTest
This tests the playername
2 years ago
Friederike von Gruben
9edfb370d3
unittest: Added test to BlackJackTest
This test tests the entity ID of the bot
2 years ago
Friederike von Gruben
c558b1287c
unittest: Created BlackJackTest
This test tests the Entity ID from the Player
2 years ago
Friederike von Gruben
b1c0059a74
Added methods and stuff to BlackJackCommand
The blackjack game works now
2 years ago
Friederike von Gruben
4897a2321c
Added playerOut() to BlackJack
This method sets the current playerIn state to false
2 years ago
Friederike von Gruben
0b3ef70def
Added botWantsToPlay() to BlackJack
This method returns a boolean whether the bot wants to play or not specified by the points he has currently
2 years ago
Friederike von Gruben
5239962efe
Added addPoints() to BlackJack
This method adds points to the player or the bot
2 years ago
Friederike von Gruben
0792129990
Added getEntity() to BlackJack
This method returns the Entity by the enum
2 years ago
Friederike von Gruben
09e3cdce30
Added isIn() to BlackJack
This method returns whether the bot or the player is in the game
2 years ago
Friederike von Gruben
905e5975ab
Added getPoints() to BlackJack
This method returns the points from the bot or the player
2 years ago
Friederike von Gruben
b16aab62c5
Added getPlayerName() to BlackJack
2 years ago
Friederike von Gruben
04d9439db6
Edited BlackJack constructor
Set botIn = true
2 years ago
Friederike von Gruben
673372adca
Edited BlackJack constructor
Set playerIn = true
2 years ago
Friederike von Gruben
b17b3bc18a
Edited BlackJack constructor
Set botPoints
2 years ago
Friederike von Gruben
f5aa351958
Edited BlackJack constructor
Set playerPoints
2 years ago
Friederike von Gruben
1e8a16c14d
Created BlackJack constructor
Set playername
2 years ago
Friederike von Gruben
37570a200c
Created enum in BlackJack
This is for the PLAYER and BOT
2 years ago
Friederike von Gruben
eab3f7bda1
Created BlackJack class
2 years ago
Friederike von Gruben
d0142a9c26
refactoring: Deleted unused method returnCommands()
2 years ago
Friederike von Gruben
66d9d812c7
refactoring: The HashMap commands is final now
2 years ago
Friederike von Gruben
bf45a59405
Created BlackJackCommand and added to the CommandListener
2 years ago
Friederike von Gruben
46422e4d5c
unittest: Edited test for QuizCommand
This test tests the print function
2 years ago
Friederike von Gruben
3641292f5e
refactoring: Deleted unused imports
2 years ago
Friederike von Gruben
56794efd3b
unittest: Edited test for QuizCommand
This test tests the random function which gives a random number between 0 and a length back
2 years ago
Friederike von Gruben
e6b712ca09
unittest: Edited test for QuizCommand
This test tests whether the canPlayAgain function works or not
2 years ago
Friederike von Gruben
c8c68946b0
unittest: Edited test for QuizCommand
This test tests the ending message for the quiz
2 years ago
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