Code Monkey home page Code Monkey logo

mineplacer's Introduction

Mineplacer

This is a browser game inspired by Minesweeper.

You are the person preparing for a game of Minesweeper by placing mines!

Play!

How to Play

  • Select a game level (8x15 or 16x30 or 16x30 with wormholes).
  • Click on a cell to place a mine there.
  • A digit in a cell indicates the number of mines that should be placed around the cell (including the cell itself).
  • โš ๏ธ mark indicates there are too many mines around the cell.
  • When wormholes exist, a part of non-mine cells are hidden.
  • The condition for winning is that all mines are placed in the correct positions.

Enable Touch Gestures

If the query string parameter gesture=true is provided, panning and pinch zoom gestures will be enabled.

Custom Mode

The board size and the number of mines/wormholes can be customized by using the following query string parameters:

  • width (between 16 and 64, default to 16)
  • height (between 16 and 64, default to 30)
  • mines (between 1 and 999, default to 99)
  • wormholes (between 0 and 999, default to 99)

For example, you can play with the maximum settings via the following URL:

Screenshot

Mineplacer

mineplacer's People

Contributors

sile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mineplacer's Issues

RuntimeError on pressing any Function key

Pressing any Function key with focus on the game window generates an error and stops the game from running. Tested in Chrome and Firefox on Windows.

game.wasm:0x3cfbc Uncaught (in promise) RuntimeError: unreachable
    at __rust_start_panic (game.wasm:0x3cfbc)
    at rust_panic (game.wasm:0x3cf8a)
    at _ZN3std9panicking20rust_panic_with_hook17h6df5db7ad9f65dc8E (game.wasm:0x3cf7c)
    at _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17h0d169fa297411d6dE (game.wasm:0x3c493)
    at _ZN3std10sys_common9backtrace26__rust_end_short_backtrace17h7fe51fb4d3ba6060E (game.wasm:0x3c3c0)
    at rust_begin_unwind (game.wasm:0x3cbe3)
    at _ZN4core9panicking9panic_fmt17h2d3c5586175098d9E (game.wasm:0x3d9e2)
    at _ZN7pagurus4wasm17game_handle_event17h49c860c2bf5a40c3E (game.wasm:0xaece)
    at gameHandleEvent (game.wasm:0x21dc0)
    at t.handleEvent (pagurus.js:76:58)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.