Surprisingly fun video :D I think the win condition isnt just flagging all the mines its to reveal everything but the mines. So instead of doing all that correct mine count stuff I think you can just slap a win condition check like " if (unRevealedCount === bombCount) " somewhere :)
It's always nice when things just work out as intended, like that search algorithm (inf loop notwithstanding). If you do plan to finish this off, the victory condition could be revealing all non-mines irrespective of whether the mines are flagged; would avoid user being able to flag everything.
Honestly I don't understand why so many developers have this addiction to producing vast amounts of code in a such short period. They often tackle unreal problems, engaging in a competition that feels disconnected from reality and, frankly, pointless.
what a shit take. This is a fun use of time for the developer, that's literally the point of life. Why are you on youtube? Watching videos is pointless
Surprisingly fun video :D
I think the win condition isnt just flagging all the mines its to reveal everything but the mines. So instead of doing all that correct mine count stuff I think you can just slap a win condition check like " if (unRevealedCount === bombCount) " somewhere :)
It's always nice when things just work out as intended, like that search algorithm (inf loop notwithstanding). If you do plan to finish this off, the victory condition could be revealing all non-mines irrespective of whether the mines are flagged; would avoid user being able to flag everything.
Honestly I don't understand why so many developers have this addiction to producing vast amounts of code in a such short period. They often tackle unreal problems, engaging in a competition that feels disconnected from reality and, frankly, pointless.
It's just a fun challenge. Speed running of some sorts.
The second sentence describes most games in existence. This challenge is just a game to develop another game.
what a shit take. This is a fun use of time for the developer, that's literally the point of life. Why are you on youtube? Watching videos is pointless