You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there's a bug in usr/minesweeper.c.
The function mine_mark() is defined in line 304~311 to mark the mine if this cell is not opened.
// usr/minesweeper.c, line 304~311voidmine_mark(structcommand*com){
intx, y;
x=com->x;
y=com->y;
if(!(board[x][y] &OPEN)) // check if the cell is openedboard[x][y] ^= MARKED;
}
However the macro OPEN is not a status but a command.
I noticed that there's a bug in usr/minesweeper.c.
The function
mine_mark()
is defined in line 304~311 to mark the mine if this cell is not opened.However the macro
OPEN
is not a status but a command.So, in function
mine_mark()
,OPEN
should be replaced withOPENED
as follows:I'd say sorry that I am not familiar with github and my git skill is not good.
That is why I have to report in this way.
The text was updated successfully, but these errors were encountered: