Skip to content

mhyeh/Golang-Mahjong-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A mahjong server written with Golang

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages