Rename project

This commit is contained in:
stefiosif
2024-09-14 22:34:47 +03:00
parent 49b413d24f
commit 062a2fe903
4 changed files with 16 additions and 18 deletions

16
Cargo.lock generated
View File

@@ -120,14 +120,6 @@ version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "ippos"
version = "0.1.0"
dependencies = [
"clap",
"rand",
]
[[package]] [[package]]
name = "is_terminal_polyfill" name = "is_terminal_polyfill"
version = "1.70.1" version = "1.70.1"
@@ -301,3 +293,11 @@ name = "windows_x86_64_msvc"
version = "0.52.6" version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "zeal"
version = "0.1.0"
dependencies = [
"clap",
"rand",
]

View File

@@ -1,10 +1,8 @@
[package] [package]
name = "ippos" name = "zeal"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.5.16", features = ["derive"] } clap = { version = "4.5.16", features = ["derive"] }
rand = { version = "0.8.5", features = ["small_rng"] } rand = { version = "0.8.5", features = ["small_rng"] }

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Creating a .bat file to connect to cutechess GUI on windows # Create a batch file to connect with cutechess GUI on windows
if ! cargo build --release --target x86_64-pc-windows-gnu; then if ! cargo build --release --target x86_64-pc-windows-gnu; then
echo "cargo build failed" echo "cargo build failed"
@@ -13,9 +13,9 @@ if ! cd "$BUILD_DIR"; then
exit 1 exit 1
fi fi
BAT_FILE_NAME="ippos.bat" BAT_FILE_NAME="zeal.bat"
echo "ippos.exe -- --mode uci" > "$BAT_FILE_NAME" echo ".\zeal --mode uci" > "$BAT_FILE_NAME"
echo "created ippos.bat in directory: $(pwd)" echo "created "$BAT_FILE_NAME" in directory: $(pwd)"
if ! unix2dos "$BAT_FILE_NAME"; then if ! unix2dos "$BAT_FILE_NAME"; then
echo "failed to convert line endings for Windows" echo "failed to convert line endings for Windows"

View File

@@ -50,7 +50,7 @@ use std::fmt;
impl fmt::Display for Response { impl fmt::Display for Response {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self { match self {
Self::UciOk => write!(f, "id name ippos\nid author stefiosif\nuciok"), Self::UciOk => write!(f, "id name zeal\nid author stefiosif\nuciok"),
Self::ReadyOk => write!(f, "readyok"), Self::ReadyOk => write!(f, "readyok"),
Self::BestMove(best_move) => write!(f, "bestmove {best_move}"), Self::BestMove(best_move) => write!(f, "bestmove {best_move}"),
Self::Info(info) => write!(f, "{info}"), Self::Info(info) => write!(f, "{info}"),
@@ -253,7 +253,7 @@ mod tests {
uci_loop(input, &mut output)?; uci_loop(input, &mut output)?;
let expected_response = "id name ippos\n\ let expected_response = "id name zeal\n\
id author stefiosif\n\ id author stefiosif\n\
uciok\n\ uciok\n\
Clear cache\n\ Clear cache\n\
@@ -279,7 +279,7 @@ mod tests {
uci_loop(input, &mut output)?; uci_loop(input, &mut output)?;
let expected_response = "id name ippos\n\ let expected_response = "id name zeal\n\
id author stefiosif\n\ id author stefiosif\n\
uciok\n\ uciok\n\
Clear cache\n\ Clear cache\n\