removed useless stuff
This commit is contained in:
parent
75adb4b1ba
commit
1723356f62
@ -17,8 +17,7 @@ struct Coords {
|
|||||||
return this->y * 8 + this->x;
|
return this->y * 8 + this->x;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Coords from_index(int idx, const char* yes = __builtin_FUNCTION()) {
|
static Coords from_index(int idx) {
|
||||||
// std::cout << yes << std::endl;
|
|
||||||
if (idx < 0 || idx > 63)
|
if (idx < 0 || idx > 63)
|
||||||
throw std::invalid_argument("The index is outside the board...");
|
throw std::invalid_argument("The index is outside the board...");
|
||||||
return {idx % 8, idx / 8};
|
return {idx % 8, idx / 8};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user