2025-10-16 22:55:19 +08:00
2025-10-16 22:41:21 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 22:41:21 +08:00
2025-10-16 07:12:01 +08:00
2025-10-16 09:44:49 +08:00
2025-10-16 07:12:01 +08:00
2025-10-16 07:12:01 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 09:44:49 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 05:15:24 +08:00
2025-10-16 07:12:01 +08:00
2025-10-16 09:44:49 +08:00
2025-10-16 22:55:19 +08:00

Introduction to Network Programming Homework

System Architecture

  • The client program uses a TUI framework 'bubbletea' in Go.
  • The auth server use HTTP with in-memory SQLite as backend.
  • After auth, you can select the role to connect using P2P.
    • Server: listen for client to join
    • Client: scan and choose server to join

Connections

  • The auth server uses HTTP RESTful API, with JSON format payload and HTTP Basic Auth.
  • The UDP part uses builtin 'net' package in Go, and use MessagePack with some pre-shared Magic Number to prevent spoofing.
  • The wordle server also uses HTTP RESTful API, with JSON format payload.

Gameplay

  • A Wordle replica with multiplayer support.
  • Players guess the 5-letter word within 6 round.
  • After each round the guess result of others will be shared between players.
  • The person who guess the word first wins.
Description
No description provided
Readme 486 KiB
Languages
Go 99.5%
Makefile 0.5%