From 16ff78180669411326d42ea32d4a9260c018236c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 13 Aug 2024 12:48:31 +0200 Subject: refactor server to use client-lib data model (breaks customers) --- server/bot/Cargo.toml | 2 +- server/bot/src/lib.rs | 17 +++++++++++++++++ server/bot/src/main.rs | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) (limited to 'server/bot') 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 . + +*/ #![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; -- cgit v1.2.3-70-g09d2