这是刚学Node的时候写的,很久了,虽然比较简陋,也许还有BUG,但总归也是作品,也提交上来充个数吧,项目地址:http://git.oschina.net/scgywx/five-chess/


简介

NodeJS + Socket.io开发的网络版五子棋,类似QQ游戏的五子棋,有大厅、用户列表、房间、聊天等功能。

安装

1、下载源代码,安装socket.io
2、运行服务端, 进入server目录,执行node index.js
3、使用http server(nginx或apache)将目录指向client目录(需要访问图片,html等文件)
4、修改服务器IP和端口(分别位于index.html第70,87,88行)
5、访问index.html即可


图片

网络版五子棋(Nodejs+socket.io)

网络版五子棋(Nodejs+socket.io)

转载于:https://my.oschina.net/scgywx/blog/354941

相关文章:

  • 2021-05-11
  • 2021-08-06
  • 2022-01-29
  • 2021-05-04
猜你喜欢
  • 2021-07-20
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-09-26
  • 2022-12-23
相关资源
相似解决方案