fixed the is_within_bounds check
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user