GithubHelp home page GithubHelp logo

mines-vs's Introduction

Minesweeper Arena

Play new versions of minesweeper against your friends in real time.

Single Board Versus: Clear more tiles than your opponent to win!

Time Attack: Play on a sepeprate board with the same layout as your opponent. Clear your board first to win!

Made with:

peerjs Vue html canvas

Rust/C WASM (future) electron (future)

wasm priority:

  1. state
  2. render thread
  3. game managers

Known Issues

In Chrome, Peerjs connection may fail when two players are on the same local network due to NAT traversal. To fix, open chrome://flags/, Search for Anonymize local IPs exposed by WebRTC and disable it.

.env configuration

VUE_APP_PEER_SERVER=localhost
VUE_APP_PORT=8081
VUE_APP_USE_PUBLIC_PEERJS=false
VUE_APP_PEER_DEBUG_LEVEL=0

Using a peer.js server

VUE_APP_USE_PUBLIC_PEERJS can be 'true' or 'false' to switch between using the public peer.js server and a locally hosted one.

VUE_APP_PEER_SERVER should be the ipv4 address that your application is running on (see image) if you are hosting the server yourself. It will NOT work if you try and google what your IPv4 address is. NOTE: "localhost normally resolves to the IPv4 loopback address 127.0.0.1." You can use localhost if you are doing solo testing.

ipv4 address that your application is running on

VUE_APP_PORT is the port of your local peer.js server .

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Starts local Peer.js server

yarn start

Customize configuration

See Configuration Reference.

mines-vs's People

Contributors

kenzieryann7 avatar nickbreslin avatar sinoftheta avatar

Watchers

James Cloos avatar  avatar

mines-vs's Issues

redesign play again banner

play again banner should have 4 components:

win/loss/tie indicator

player "play again" button that changes to "ready" once it has been clicked

"opponent waiting" indicator that changes to "opponent ready" when they are ready

autoplay indicator that opens the settings/ toggles autoplay when clicked

settings as a sidebar

as a user I want to edit my client settings (autoplay, themes, cell width, sounds) without interrupting the multiplayer connection.

solution: have the settings be a collapsing sidebar in front of the game

split multiGame.js into two classes

much of the code in the two switch functions is identical. All code shared between the client and host should be in one layer, and another layer should interface with the board state.

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.