From def8975617e5c6da431e41cc889d167b0f2e2bb0 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Thu, 7 Nov 2024 21:41:53 +0200 Subject: Added possibility to join in the middle of the game & fixed bugs and inaccuracies: * Adding the player didn't add it to the starting area. Fixed. * Refactored some code a bit by extracting functions * Changed the areas of `Adventure` to be private --- 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 da13025..145dc1c 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, 30).startServer() + case Some(2) => Server(2267, 5, 30, true).startServer() case _ => println("Invalid input") -- cgit v1.2.3