From 8a0445f6e21e27c93cee4edb744ffb3c0ab24595 Mon Sep 17 00:00:00 2001 From: Sandipsinh Rathod Date: Thu, 10 Oct 2024 19:27:03 -0400 Subject: [PATCH] added some todo --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 712b5f0..a6c3d31 100644 --- a/main.cpp +++ b/main.cpp @@ -128,6 +128,8 @@ Moves serialize(const string &s) { int x, y; while (iss >> player >> x >> y) { if (player == "END") break; + + // TODO: move this exceptions to runtime checks if (x >= result.x || y >= result.y) { string err = "Invalid move by: " + player + " (" + toString(x) + ", " + toString(y) + ")"; throw invalid_argument(err);