avoid exceptions to stay compatible with ESP8266

add limitaion information to readme
This commit is contained in:
muebau 2024-05-26 21:00:13 +02:00
parent 69b99abb7d
commit 97e4eec5be
2 changed files with 5 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public:
{
if (width > 32)
{
throw std::invalid_argument("maximal width is 32");
this->width = 32;
}
}

View File

@ -31,3 +31,6 @@ It is best to set the background color to black 🖤, the border color to light
## Best results
If the speed is set to be a little bit faster than a good human could play with maximal intelligence and very few mistakes it makes people furious/happy at a party 😉.
## Limits
The game grid is limited to a maximum width of 32 and a maximum height of 255 due to the internal structure of the code.