From fdaec6534eb7ee902c75be3e4b732b6970abd859 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Thu, 7 Nov 2024 01:17:58 +0200 Subject: Made the server work with the adventure model * The model was imported from the wrong version, so that needs to be fixed. * The client side doesn't work at all right now. Use netcat for testing. * There are inconveniences and bugs in the model (eg. it lists the player among entities) * Players can just see each other, not interact in any way But it's a good base. --- src/main/scala/main.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala/main.scala') diff --git a/src/main/scala/main.scala b/src/main/scala/main.scala index 18172e2..da13025 100644 --- a/src/main/scala/main.scala +++ b/src/main/scala/main.scala @@ -9,7 +9,7 @@ import scala.io.StdIn.readLine print("Please choose:\n1) Client.Client\n2) Server\n> ") readLine().toIntOption match case Some(1) => Client("127.0.0.1", 2267).startClient() - case Some(2) => Server(2267, 5).startServer() + case Some(2) => Server(2267, 5, 30).startServer() case _ => println("Invalid input") -- cgit v1.2.3