From 7aa43ba3fa973e856a583cf54103bf85d71338f2 Mon Sep 17 00:00:00 2001 From: GearsDatapacks Date: Wed, 3 Sep 2025 15:26:46 +0100 Subject: [PATCH] Add more logging --- src/starfish_testing.gleam | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/starfish_testing.gleam b/src/starfish_testing.gleam index 7c51296..e3ebc06 100644 --- a/src/starfish_testing.gleam +++ b/src/starfish_testing.gleam @@ -14,12 +14,16 @@ import starfish/internal/move.{type Legal, type Move} const fen_file = "silversuite.fen" pub fn main() -> Nil { + io.println("Loading games from file...") + let assert Ok(games) = fen_file |> file.read |> result.map(string.split(_, "\n")) as "Failed to read game file" + io.println("Loaded games. Running game 0...") + let outcomes = list.index_map(games, fn(game, i) { let outcome = run_game(game) @@ -29,6 +33,7 @@ pub fn main() -> Nil { <> ", outcome " <> string.inspect(outcome), ) + io.println("Running game " <> int.to_string(i + 1) <> "...") outcome }) -- 2.51.2