forked from IF-LK-2020/wordle
Rename
This commit is contained in:
@@ -18,8 +18,6 @@ public class Game {
|
|||||||
this.ip = pClientIP;
|
this.ip = pClientIP;
|
||||||
this.port = pClientPort;
|
this.port = pClientPort;
|
||||||
|
|
||||||
user = new User();
|
|
||||||
|
|
||||||
send("+OK Hello there");
|
send("+OK Hello there");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,26 +30,26 @@ public class Game {
|
|||||||
|
|
||||||
switch (phase) {
|
switch (phase) {
|
||||||
case 0:
|
case 0:
|
||||||
login();
|
loginPhase(msg);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
play();
|
gamePhase(msg);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
end();
|
endPhase(msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void login() {
|
private void loginPhase(String msg) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void play() {
|
private void gamePhase(String msg) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void end() {
|
private void endPhase(String msg) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user