aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-02-05 14:02:36 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit5c475a552dbf16589d212bc7de7ed526b47aad08 (patch)
tree6717f8727b37d67caace02c8f93991d9c28ac75d /src
parent40c6b1dafab4de169bac8a799e7953e85061218e (diff)
Renamed binaries
Diffstat (limited to 'src')
-rw-r--r--src/ctlm.c (renamed from src/ctaklm.c)6
-rw-r--r--src/cttei.c (renamed from src/tei.c)8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ctaklm.c b/src/ctlm.c
index 0948fa7..09900e3 100644
--- a/src/ctaklm.c
+++ b/src/ctlm.c
@@ -1,5 +1,5 @@
/*
- ctaklm, a line mode interface to the ctak library
+ ctlm, a line mode interface to the ctak library
Copyright (C) 2021, tslil clingman
@@ -439,7 +439,7 @@ input_is_not_turn(const char *line) {
return EXIT_SUCCESS;
}
-const char* license = "ctaklm, a line mode interface to the ctak library\n\
+const char* license = "ctlm, a line mode interface to the ctak library\n\
\n\
Copyright (C) 2021, tslil clingman\n\
\n\
@@ -470,7 +470,7 @@ int main(int argc, char **argv) {
human = 0;
for (int playing = 1; playing;) {
while (human == 0) {
- fputs("ctaklm> ", stdout);
+ fputs("ctlm> ", stdout);
fflush(stdout);
read = getline(&line, &alloc_size, stdin);
if (read > 0) {
diff --git a/src/tei.c b/src/cttei.c
index 93c67ce..6321700 100644
--- a/src/tei.c
+++ b/src/cttei.c
@@ -1,5 +1,5 @@
/*
- ctaktei, a TEI interface to the ctak library & its computer opponent
+ cttei, a TEI interface to the ctak library & its computer opponent
Copyright (C) 2021, tslil clingman
@@ -86,7 +86,7 @@ handle_tei(char *line) {
return parse_position_string(line + 9);
} else if (!strncmp(line, "teinewgame", 10)) {
if (line[11] != '5') return TEI_FAILURE;
- const uint8_t size = line[11] - '0';
+ const uint8_t size = atoi(line + 11);
if (size != board_size) {
negamax_free();
reset_state(size);
@@ -99,7 +99,7 @@ handle_tei(char *line) {
return TEI_OK;
}
-const char* license = "ctaktei, a TEI interface to the ctak library & its computer opponent\n\
+const char* license = "cttei, a TEI interface to the ctak library & its computer opponent\n\
\n\
Copyright (C) 2021, tslil clingman\n\
\n\
@@ -126,7 +126,7 @@ int main(int argc, char **argv) {
line = NULL;
// Identify ourselves, and send the options
- puts("id name ct1986");
+ puts("id name cttei");
puts("id author tslil clingman");
puts("option name Depth type spin default 4 min 2 max 6");
puts("teiok");