I decided to have a go at this, even though I am at best a JavaScript dabbler.<p>I did plan...but if you were watching me you would not have <i>seen</i> me planning.<p>I decided right away that my display was going to be a table with one table cell per Minesweeper cell, with the table cell&#x27;s ID of the form &quot;X_Y&quot; where X and Y are the coordinates of the corresponding Minesweeper cell. I did the rest of my planning while getting that HTML written (first in vim, and then when that was going too slow even with macro assistance by writing a little Perl script to generate the HTML).<p>I was not able to do it in an hour. At the end of one hour, I had everything for a rudimentary Minesweeper coded, but had a bug in the code that reveals the cells around a clicked empty cell, and it took another 20 minutes to find and fix that.<p>Here is what I came up with: <a href="https:&#x2F;&#x2F;github.com&#x2F;tzs&#x2F;interview_minesweeper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tzs&#x2F;interview_minesweeper</a><p>The initial commit was made at the one hour point, so that would have been what I would have turned in during an interview.