4 ms·
Not sure if anyone from Otherbranch will see this but there's a tiny error in the description part of the coding problem on this page: https://www.otherbranch.
by philbo 2y ago
Not sure if anyone from Otherbranch will see this but there's a tiny error in the description part of the coding problem on this page:
https://www.otherbranch.com/practice-coding-problem https://www.otherbranch.com/practice-coding-problem
Under step 2, the description says:
> If the selection is not a mine,
> but has adjacent mines in one of the squares next to it (including diagonally),
> change that square to display the number of mines adjacent to it.
However, the example output alongside it shows a square that is changed to the value zero. That square has no adjacent mines, so if the description were correct it would not have changed value.
So either the "but has adjacent mines" clause should be deleted from the description, or an additional "otherwise change that square to display zero" clause should be added, or the example output should be changed.
- rachofsunshine 2y agoShould be fixed now! Thanks for the note.