diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-12-07 19:15:58 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-12-07 19:18:03 +0100 |
| commit | 9acea903216dbe371dd7b41cbf23b46a5732bcb4 (patch) | |
| tree | 5a61491ad22e470db8151d2e07f163b011c72d6e /src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java | |
| parent | 8a53a8fca255e4a84ca0e35dac925a223738b98a (diff) | |
| download | Java1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.tar.gz Java1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.zip | |
Refactored the packagenames fo better sorting
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java b/src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java deleted file mode 100644 index 40c7254..0000000 --- a/src/de/fhswf/in/inf/java1/aufgabe7/Spieler.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - */ -package de.fhswf.in.inf.java1.aufgabe7; - -/** - * Represents a player that chooses a shell. - * - * @author $Author: $ - * @version $Revision: $, $Date: $ UTC - */ -public abstract class Spieler -{ - - private int ersterTipp = -1; - - /** - * The first shell the player chooses. - * - * @return The first guess for a shell - */ - public final int ersterTipp() - { - ersterTipp = Spiel.RAND.nextInt(Spiel.MAXHUET); - return ersterTipp; - } - - /** - * Getter for the first choice. - * - * @return The first choice - */ - public final int getErsterTipp() - { - return ersterTipp; - } - - /** - * After the first guess, the player must choose a second shell. - * - * @param leeresHuetchen - * The shell, the game showed as empty - * @return The second guess for the right shell - */ - public abstract int zweiterTipp(int leeresHuetchen); - -} |
