GithubHelp home page GithubHelp logo

five_chess's Introduction

五子棋游戏

##简介 一个五子棋游戏,能够人机对战和双人联机对战

##启动 运行如下命令:

$ git clone [email protected]:LingyuCoder/FiveChess.git
$ cd FiveChess
$ npm install
$ npm start

然后咋浏览器中输入http://localhost:2999#yourname就可以以名称yourname进入游戏了。如果没有指定名称,将自动生成一个随机字符串作为名称

##人机对战 进入页面后默认就是人机对战,点击开始即可。

##玩家对战 进入页面后,点击右下角的玩家对战进入玩家对战模式。若对方也在玩家对战模式,点击连接并输入对方的名称,如果连接成功将显示开始按钮,点击后即可对战

PS:如果不在一台机子上的话,记得修改index.html的head中的WEBSOCKETADDR地址为启动服务的地址

##依赖和兼容性 玩家对战模式依赖peertc,其优先使用WebRTC DataChannel,不支持时使用WebSocket,请保证浏览器至少能够支持WebSocket

##License MIT

five_chess's People

Contributors

97wgl 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.