From 2697fe0899c3982ffe29c287586af6413ba8961c Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 2 Jun 2022 13:35:32 +0300 Subject: [PATCH] feat: fields which have all bombs already flags can be auto opened --- README.md | 9 +++++++++ index.html | 8 +++++++- src/lib.rs | 5 +++++ src/minesweeper.rs | 27 +++++++++++++++++++++++++-- 4 files changed, 46 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2af656..fe6c552 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # Minesweeper using Rust & WASM Tutorial: https://www.youtube.com/watch?v=0ywizYLPV00 + +## Development + +``` +wasm-pack build --target web +serve +``` + +If it says that you don't have `serve`, you can install from here: https://www.npmjs.com/package/serve. diff --git a/index.html b/index.html index ca3094a..be7c493 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ html {