added some todo

This commit is contained in:
Sandipsinh Rathod 2024-10-10 19:27:03 -04:00
parent b5dd36b8af
commit 8a0445f6e2

@ -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);