paul1908/Peer-to-peer-Minesweeper ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple browser based Minesweeper game that lets two people play together peer to peer.
I want it to run from one page, with a clean Minesweeper board, click to reveal squares, flag mines, and handle win or lose states. It should also have a way for one player to create a room and another player to join, so they can share the same game board and see each other’s actions in real time without a central server if possible.
Keep the interface simple and easy to use, with an obvious start screen, room sharing, and restart button. If you need to look up current browser based peer to peer options online, go ahead. Make it feel polished and playable, and put everything needed into the existing HTML file if that makes sense.
Are you gonna build this?
make sure you review the code using coderabbit