How yvtg/nt106_project works
Project Type & Purpose
• This is a networked, multi-component application developed for a network programming course. The project is a game titled “Sketch&Guess” where players likely interact via drawing and guessing (similar in spirit to Pictionary), with a client-server architecture.
• The existence of multiple projects (LoadBalancer, Server, RoomServer, Program, Models) indicates that the game is distributed into various responsibilities across the system.
Analyzing the File Structure & Key Components
• Client Component (Program):
• Contains many Windows Forms (e.g., Form_Login, Form_Register, Form_Home, Form_Room, etc.) used for user interaction.
• Responsible for tasks such as user sign-in, room management, game messaging, creating game files, etc.
• Server Component (Server):
• Includes files like Form_Server and DataAccess (DatabaseHelper.cs), which suggest handling of user management, passwords, and probably communication with a database.
• Likely responsible for central server logic and authentication.
• Room Server Component (RoomServer):
• Its structure (with RoomServer.cs and related forms) indicates that it handles game room specific logic, likely routing messages among players in a game session.
• Load Balancer (LoadBalancer):
• Files like LoadBalancer.cs and configuration indicate that this component manages incoming client requests, distributing them among available servers (e.g., the RoomServer and Server components) to balance the load.
• Models:
• Contains domain entities and shared classes (e.g., User, Room, Packet, various data/text files) which represent the core data models shared by client and server components.