forked from IF-LK-2020/wordle
asdasda
This commit is contained in:
@@ -89,6 +89,12 @@ public class Game {
|
|||||||
private void gamePhase(String msg) {
|
private void gamePhase(String msg) {
|
||||||
if (msg.startsWith("send")) {
|
if (msg.startsWith("send")) {
|
||||||
|
|
||||||
|
String args = msg.substring(5);
|
||||||
|
//vergleichen von wotd mit
|
||||||
|
//ja = spiel beendet und ausgabe word 11111
|
||||||
|
//nein = ausgabe 01102 oder so und prüfen ob man noch ein wort eingebn kann
|
||||||
|
// ja game continues nein = game lost
|
||||||
|
|
||||||
} else if (msg.startsWith("info")) {
|
} else if (msg.startsWith("info")) {
|
||||||
|
|
||||||
} else if (msg.startsWith("exit")) {
|
} else if (msg.startsWith("exit")) {
|
||||||
@@ -124,18 +130,6 @@ public class Game {
|
|||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPort(int port) {
|
|
||||||
this.port = port;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIp(String ip) {
|
|
||||||
this.ip = ip;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPort() {
|
|
||||||
return port;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPort(int port) {
|
public void setPort(int port) {
|
||||||
this.port = port;
|
this.port = port;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user