Skip to content

fjmygame/qipaiskynet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qipaiskynet

qipai with skynet






  • service

    1. log4g
    2. mysql
    3. websocket
    4. http
    5. all suport agent, load balancing
    6. ...




  • git

    1. submodule
      git submodule add https://github.com/cloudwu/skynet.git

    2. update
      git submodule init
      git submodule update

    submodule远程分支发生变更后,直接使用git submodule update是不会进行更新操作的
    git submodule foreach git checkout master
    git submodule foreach git pull

    1. delete all git commit logs
      https://blog.csdn.net/yc1022/article/details/56487680
    1.Checkout
        git checkout --orphan latest_branch
    2. Add all the files
        git add -A
    3. Commit the changes
        git commit -am "commit message"
    4. Delete the branch
        git branch -D master
    5.Rename the current branch to master
        git branch -m master
    6.Finally, force update your repository
        git push -f origin master


测试 API

测试内容在 test 目录下

# 进入 api 测试目录
cd test/api

# 下载测试依赖文件
npm install

# 运行测试,在命令行查看测试结果
npm test


# 也可以打开 test/api/mochawesome-report/mochawesome.html 查看测试结果
  • skynet
    1. download skynet
      git submodule init
      git submodule update
      git submodule foreach git checkout master
      git submodule foreach git pull

    2. cloud 下
      Linux: make linux
      Mac: make macosx


    3. killall skynet

    4. sh bin/start.sh


  • vo关系图
    1. vo
      FD_list =》 fd (就是连接的socket句柄)
      PlayerList =》 Player (用户)
      RoomList =》 Room (房间)

      Round_list =》
      {
      Round (每一局)
      Round_Player_Poker (每一局对应每个用户的牌)
      }

About

qipai with skynet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 46.6%
  • JavaScript 26.2%
  • C 17.5%
  • HTML 4.4%
  • CMake 3.3%
  • CSS 0.8%
  • Other 1.2%