Giter Club home page Giter Club logo

minesweeper's Introduction

HTML5扫雷游戏

搬砖业余学习编程,使用原生的 HTML + CSS + JavaScript 做了一个扫雷游戏,功能和windows自带的扫雷游戏一致。

雷的布局采用随机的方式。

整个雷区就是通过一个table实现的,每个td元素内包含着数个div,通过类似率Ps图层的方法进行显示控制。

  • 支持双键操作
  • 如果一片是空白,将自动打开一片
  • 第一步不是雷
  • 有一个游戏统计功能,可以保存游戏信息。
  • 有三个难度可以选择
  • 有三种颜色可以选择
  • 所有图标均有CSS绘制

仅在内核为Chromium53.0.2785.104的浏览器上运行正常,其它浏览器没有测试。

游戏地址 : 网页版扫雷

更新

2017年9月29日 :

  • 把第一步不是雷,修改为第一步一定是空格,增加开局效率。

minesweeper's People

Contributors

zhangxiaoleiwk avatar

Watchers

 avatar

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.