diff --git a/src/main/java/linux/general/hackyquizbot/QuizBackend.java b/src/main/java/linux/general/hackyquizbot/QuizBackend.java new file mode 100644 index 0000000..030243c --- /dev/null +++ b/src/main/java/linux/general/hackyquizbot/QuizBackend.java @@ -0,0 +1,58 @@ +package linux.general.hackyquizbot; + +public class QuizBackend { + + public static String[] getCategories() { + return null; + } + + public static Question getRandomQuestionForCategory(String category) { + return null; + } + + public static int getScoreForUser(String discordUserID) { + return 0; + } + + public static class Question { + public Question(String question, String[] answers) { + + } + + /** + * @return the full question text including multiple choice options + */ + public String getQuestionTextWithOptions() { + return null; + } + + /** + * @return a character array containing all the valid answers + */ + public char[] getValidResponses() { + return null; + } + + /** + * This is used to send the user’s reply back to the backend. Can be called + * multiple times to add answers for questions with multiple possible answers. + * + * @param discordUserID + * @param answer + */ + public void addAnswer(String discordUserID, char answer) { + + } + + /** + * Used to balance easy and difficult questions. Difficult questions will have a + * higher value so if someone gets a bunch of them they will get less questions + * overall. + * + * @return + */ + public int getQuestionScoreValue() { + return 0; + } + } +}