aboutsummaryrefslogtreecommitdiff
path: root/server/bot
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-13 12:48:31 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-13 16:03:38 +0200
commit16ff78180669411326d42ea32d4a9260c018236c (patch)
treed7c6a7ab498bb1b4f9a3b3db99d54e8781216e05 /server/bot
parent11ff74f034aeec58c06dbe15a3f1ee650ef18c9f (diff)
downloadhurrycurry-16ff78180669411326d42ea32d4a9260c018236c.tar
hurrycurry-16ff78180669411326d42ea32d4a9260c018236c.tar.bz2
hurrycurry-16ff78180669411326d42ea32d4a9260c018236c.tar.zst
refactor server to use client-lib data model (breaks customers)
Diffstat (limited to 'server/bot')
-rw-r--r--server/bot/Cargo.toml2
-rw-r--r--server/bot/src/lib.rs17
-rw-r--r--server/bot/src/main.rs2
3 files changed, 19 insertions, 2 deletions
diff --git a/server/bot/Cargo.toml b/server/bot/Cargo.toml
index ee9706d8..3143ab55 100644
--- a/server/bot/Cargo.toml
+++ b/server/bot/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "bot"
+name = "hurrycurry-bot"
version = "0.1.0"
edition = "2021"
diff --git a/server/bot/src/lib.rs b/server/bot/src/lib.rs
index e8f05fd6..385e2334 100644
--- a/server/bot/src/lib.rs
+++ b/server/bot/src/lib.rs
@@ -1,3 +1,20 @@
+/*
+ Hurry Curry! - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
#![feature(isqrt)]
pub mod algos;
pub mod pathfinding;
diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs
index e9798b75..9ecd0a84 100644
--- a/server/bot/src/main.rs
+++ b/server/bot/src/main.rs
@@ -16,8 +16,8 @@
*/
use anyhow::Result;
-use bot::{algos::ALGO_CONSTRUCTORS, BotAlgo, BotInput};
use clap::Parser;
+use hurrycurry_bot::{algos::ALGO_CONSTRUCTORS, BotAlgo, BotInput};
use hurrycurry_client_lib::{network::sync::Network, Game};
use hurrycurry_protocol::{PacketC, PacketS, PlayerID};
use log::warn;