Live data from Hacker News

Show HN: An Event Sourced Minesweeper

dfarr.github.io

11–20 of 26 posts

Re: Show HN: An Event Sourced Minesweeper

#15

I passed my time in lockdown creating an Event Sourced version of the classic game Minesweeper! Be sure to try out the slider after a few moves, or if you click on mine. Check out the code here: https://github.com/dfarr/minesweeper I also wrote a blog post: https://dfarr.medium.com/event-sourcing-minesweeper-65f0d497...

hey mate, a bit random question, but did you edit your post to add the links?

yes

Re: Show HN: An Event Sourced Minesweeper

#16
post #12

This just made me realise that the way chess games are written down (move after move, using the strict minimum amount of information) actually is Event Sourced. Quite funny. So, thank you!

Indeed! That would be a really fun project to create as well, though much more involved.

Re: Show HN: An Event Sourced Minesweeper

#17

Really nice implementation! I did tried to make simple game using JavaScript ES6 2 years back. It was really fun and learned JavaScript concepts to implement this. https://magnetomax.github.io/MineSweeper/

This is awesome! I love the use of emojis right in the source code - I did the same

Re: Show HN: An Event Sourced Minesweeper

#18
post #13

I may have found a little bug. Sometimes when you win the last mines don't get a flag: https://imgur.com/a/xLcNZ0X . My last move was to right-click on the 2 in the bottom left. Also, right clicking on borders sometimes pops up a context menu.

That's no bug, flags are strictly placed by the player.

Re: Show HN: An Event Sourced Minesweeper

#19

Really nice implementation! I did tried to make simple game using JavaScript ES6 2 years back. It was really fun and learned JavaScript concepts to implement this. https://magnetomax.github.io/MineSweeper/

This is awesome! I love the use of emojis right in the source code - I did the same

Yours is a bit more fun to play as it allows right-clicking on the flags to uncover surrounding fields.

Both are cool stuff and nice learning experiments though!

Re: Show HN: An Event Sourced Minesweeper

#20
I was playing a quick game, clicked a mine and it was impossible for it to be a mine based on the numbers. I was about to screenshot and post it here when I realized that I had scrolled to perfectly hide the bottom row of the game, which changed everything.

There's another HN post right now about a UI problem costing Citibank $500M. It seems like this is somewhat related in my mind. If the application had made clear to me somehow that I wasn't seeing all of the information I needed to see, I wouldn't have failed. Not that it matters in this case. Just an example of how common these sorts of problems are, and how hard it would be to find and prevent all of them.

Post reply on HN