diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-07 01:17:58 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-07 01:17:58 +0200 |
commit | fdaec6534eb7ee902c75be3e4b732b6970abd859 (patch) | |
tree | f323d11dc1a33a93ee44417a58df62ef5f9ad98a /src/main/scala/main.scala | |
parent | 12cbf4d451d1002b8872b0028acbe6bd886ca9bd (diff) | |
download | scalevalapokalypsi-fdaec6534eb7ee902c75be3e4b732b6970abd859.tar.gz scalevalapokalypsi-fdaec6534eb7ee902c75be3e4b732b6970abd859.zip |
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.
Diffstat (limited to 'src/main/scala/main.scala')
-rw-r--r-- | src/main/scala/main.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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") |