fixed the is_within_bounds check

This commit is contained in:
Karma Riuk 2025-02-03 13:50:48 +01:00
parent 5f79b81ce4
commit e7fc1b06de

View File

@ -55,7 +55,7 @@ struct Coords {
}
bool is_within_bounds() const {
return this->to_index() < 64;
return 0 <= x && x < 8 && 0 <= y && y < 8;
}
};