I'm learning Go (golang? whatever), so decided to write a MUD.
- Learn the language basics
- Learn how to modularise
- Learn how to read/write files
- Learn how to parse JSON
- Learn how to accept network connections
- Learn how to read/write to the network connections
- Learn how to deal with concurrency issues
- The layout of the dungeon will be defined in JSON. However, logic associated with areas in the map will be written into the code directly.
- Code will be structured into packages.
main
- bootstraps the MUD serverdungeonmap
- code related to reading the dungeon map JSON file
More to come.
go run main.go dungeonmap/dungeonmap.json 20999
- dungeonmap/dungeonmap.json - is the default game map. You can change this, but there may be harded logic which depends on the areas in the JSON.
- 20999 - the port to run the server on. Use
telnet localhost 20999
to connect to the MUD.