2colours / Boggler-Bot-PHP

GNU Affero General Public License v3.0
0 stars 0 forks source link

Game starts from 1 found word #1

Closed 2colours closed 8 months ago

2colours commented 9 months ago

image image

This was literally the first occasion a game file was generated, and there is no available command for adding words yet... still, it mentions one found word.

2colours commented 8 months ago

image

It seems like a space is generated into the file at the beginning and that's considered an empty word.

2colours commented 8 months ago

loadGame used explode(' ', $content[2]) where $content[2] was potentially empty, remedied it with a ternary for the empty content case