golang-mahjong-server

module
v0.0.0-...-fc2bb65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2019 License: MIT

README

Mahjong server

A Mahjong server written with Golang

Files

File Name Description
mahjong / Action.go Action made by player
mahjong / Broadcast.go Broadcast message to player in same room
mahjong / GameLogic.go Main Mahjong logic
mahjong / GameManager.go Room management , player matching, login/logout, etc.
mahjong / InputChecker.go Check player's input
mahjong / Player.go Struct of player
mahjong / PlayerManager.go Manage player list
mahjong / Room.go Struct of room
mahjong / RoomInfo.go Recover game state
mahjong / SocketEvent.go Handle socket event
mahjong / SSJ.go Check Hu
mahjong / Suit.go Struct of Mahjong suit
mahjong / SuitSet.go A set of Mahjong suit
mahjong / Tile.go Struct of Mahjong tile
mahjong / Util.go Useful function
server.go main program

TODO

  • Account System
  • Game log storing
  • AI

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL