Vue minesweeper

Add a minesweeper game to your website, just for kicks!


npm install vue-minesweeper

Getting started

import Vue from 'vue'; // Load vue
import App from './App'; // Load your app
import VueMinesweeper from 'vue-minesweeper';

Vue.use(VueMinesweeper); // Add the game

new Vue({
  render: h => h(App),


Basic setup


Setup your own grid and bomb.

<minesweeper-game :rows="16" :cols="30" :bombs="99"></minesweeper-game>

Usage with the vue cdn

Copy paste this and you can get started.

<!doctype html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Vue minesweeper</title>
  <link rel="stylesheet" href="">
    <div id="app">
    <script src=""></script>
    <script src=""></script>
      var app = new Vue();