Class Routes
java.lang.Object
org.eu.zajc.akiwrapper.core.utils.route.Routes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RouteAnswers the current question and fetches the next one.
This route requires a session
Parameters:PARAMETER_STEPPARAMETER_PROGRESSIONPARAMETER_ANSWERPARAMETER_STEP_LAST_PROPOSITIONstatic final RouteCancels (undoes) an answer and fetches the previous question.static final RouteIMPORTANT: This route is EXCLUDED from tests! Because automated tests don't tend to behave like players, calling this during testing might introduce faulty data into Akinator's algorithm, so please avoid doing that.
Confirm a guess.static final RouteIMPORTANT: This route is EXCLUDED from tests! Because automated tests don't tend to behave like players, calling this during testing might introduce faulty data into Akinator's algorithm, so please avoid doing that.
Rejects the currentGuess
This route requires a session
Parameters:PARAMETER_STEPPARAMETER_PROGRESSIONThis route requires a sessionstatic final RouteCreates a new game session that all further state is associated with.
This route requires no parameters.static final StringTheAkiwrapper.Answerindexstatic final StringThe value ofGuess.getDescription()static final StringThe value ofGuessImpl.getFlagPhoto().static final StringThe value ofGuess.getId()static final StringThe value ofGuess.getName()static final StringThe current progressionstatic final StringThe current zero-indexed question numberstatic final StringThe last step that aGuesswas proposed on -
Method Summary
-
Field Details
-
PARAMETER_STEP
The current zero-indexed question number- See Also:
-
PARAMETER_PROGRESSION
The current progression- See Also:
-
PARAMETER_ANSWER
TheAkiwrapper.Answerindex- See Also:
-
PARAMETER_STEP_LAST_PROPOSITION
The last step that aGuesswas proposed on- See Also:
-
PARAMETER_GUESS_ID
The value ofGuess.getId()- See Also:
-
PARAMETER_GUESS_NAME
The value ofGuess.getName()- See Also:
-
PARAMETER_GUESS_DESCRIPTION
The value ofGuess.getDescription()- See Also:
-
PARAMETER_GUESS_FLAG_PHOTO
The value ofGuessImpl.getFlagPhoto(). The purpose of this is unknown- See Also:
-
NEW_SESSION
Creates a new game session that all further state is associated with.
This route requires no parameters. -
ANSWER
Answers the current question and fetches the next one.
This route requires a session
Parameters: -
CANCEL_ANSWER
Cancels (undoes) an answer and fetches the previous question.
This route requires a session
Parameters: -
EXCLUDE
IMPORTANT: This route is EXCLUDED from tests! Because automated tests don't tend to behave like players, calling this during testing might introduce faulty data into Akinator's algorithm, so please avoid doing that.
Rejects the currentGuess
This route requires a session
Parameters: This route requires a session -
CHOICE
IMPORTANT: This route is EXCLUDED from tests! Because automated tests don't tend to behave like players, calling this during testing might introduce faulty data into Akinator's algorithm, so please avoid doing that.
Confirm a guess. While this doesn't affect the current session, because it's called at the very end, it likely affects Akinator's algorithm and associates the taken answer route with the confirmed guess, thus improving the game for everyone. Rejects the currentGuess
This route requires a session
Parameters: This route requires a session
-