aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/main.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-07 21:41:53 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-07 21:41:53 +0200
commitdef8975617e5c6da431e41cc889d167b0f2e2bb0 (patch)
treef538102c17d81b596834fad7f47528fe2fc04b19 /src/main/scala/main.scala
parent891b6f877ba848a3f78851a757734ebd1f066798 (diff)
downloadscalevalapokalypsi-def8975617e5c6da431e41cc889d167b0f2e2bb0.tar.gz
scalevalapokalypsi-def8975617e5c6da431e41cc889d167b0f2e2bb0.zip
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
Diffstat (limited to 'src/main/scala/main.scala')
-rw-r--r--src/main/scala/main.scala2
1 files changed, 1 insertions, 1 deletions
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")