added some todo
This commit is contained in:
parent
b5dd36b8af
commit
8a0445f6e2
2
main.cpp
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user