-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
8 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 3 additions & 29 deletions
32
src/main/java/org/kryptojagd/level/tasks/MultipleChoiceTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
package org.kryptojagd.level.tasks; | ||
|
||
import org.kryptojagd.level.Level; | ||
import java.util.HashMap; | ||
|
||
/** | ||
* The class describes a task, where you have to answer multiple choice questions | ||
* | ||
* @author Sonja | ||
*/ | ||
public class MultipleChoiceTask implements Task { | ||
|
||
private String question; | ||
private String answer; | ||
private String[] possibilities; | ||
|
||
/** | ||
* Creates a {@link MultipleChoiceTask} | ||
* | ||
* @param question the question, which you have to answer | ||
* @param answer the right answer of the question | ||
* @param possibilities the possibilities to answer | ||
*/ | ||
public MultipleChoiceTask(String question, String answer, String[] possibilities) { | ||
this.question = question; | ||
this.answer = answer; | ||
this.possibilities = possibilities; | ||
public MultipleChoiceTask(HashMap<String,Object> input) { | ||
} | ||
|
||
@Override | ||
public boolean proofAnswer(String answer) { | ||
return this.answer.equals(answer); | ||
return false; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
String multipleChoice = ""; | ||
return multipleChoice; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters