Please help contribute to the Reddit categorization project here

    monica_b1998

    + friends - friends
    30,801 link karma
    380 comment karma
    send message redditor for

    [–] Minesweeper game in 100 lines of pure Java Script monica_b1998 1 points ago in web_design

    you're right. i somehow find it hard to comment in a tutorial because the same information will be repeated in the description of the code...

    [–] Minesweeper game in 100 lines of pure Java Script monica_b1998 1 points ago in web_design

    yeah, that's a limitation that would take like 4 extra lines to circumvent...

    [–] Minesweeper game in 100 lines of pure Java Script monica_b1998 1 points ago in web_design

    what would you propose instead to easily measure complexity of code?

    [–] Minesweeper game in 100 lines of pure Java Script monica_b1998 4 points ago in web_design

    can you be more specific? how would you simplify 101-110?

    "shouldn't ask twice" - why? function reveal needs to check for hidden/mine first because it can be triggered by itself for a different tile than the one initially clicked.

    "no, then ...end" - that's the correct behavior. it's the end of the click functionality and the program waits for another click.

    [–] Minesweeper game in 100 lines of pure Java Script monica_b1998 16 points ago * (lasted edited 4 days ago) in web_design

    you're right, I'll have to remove them. thanks for a good catch!

    EDIT: done