https://github.com/ahlusar1989/multiplayerminesweeper
Multiplayer Minesweeper
https://github.com/ahlusar1989/multiplayerminesweeper
java-8 multiplayer-game multithreading
Last synced: 6 months ago
JSON representation
Multiplayer Minesweeper
- Host: GitHub
- URL: https://github.com/ahlusar1989/multiplayerminesweeper
- Owner: ahlusar1989
- Created: 2017-06-24T21:47:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T12:36:56.000Z (over 8 years ago)
- Last Synced: 2024-10-05T23:41:22.821Z (about 1 year ago)
- Topics: java-8, multiplayer-game, multithreading
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Multithreading**
Uses immutable or thread-safe data structures
Uses a queue to send messages that will be processed sequentially by a single thread**Message Protocol**
Messages in this protocol are described precisely and comprehensively using a pair of grammars.
The server accepts any incoming message that satisfies the user-to-server grammar, react appropriately,
and generate only outgoing messages that satisfy the server-to-user grammar - in this case
the Backus–Naur Form.**Client**
Telnet
**Note**
Most of the Abstract Date Types in this client/server program don’t need to rely on networking.
I made sure to specify, test, and implement them as separate components that are safe from bugs,
easy to understand, and ready for change — in part because they don’t involve any networking code.The Invariant for the server is guaranteed through the thread safety strategies of confinement,
immutability, and existing threadsafe data types .