How stephen-sim/typinggame works
Project Type and Purpose
• This is a two-component full-stack desktop/web solution:
• TypingGameAPI: an ASP.NET Core Web API that scrapes online articles (using HTMLAgilityPack) and exposes endpoints to retrieve sentences for the typing test.
• TypingGameApp: a .NET 6 WinForms desktop application that presents the UI (Start Menu, Game Panel, Complete Panel), calls the Web API to fetch text, measures WPM, and displays results.
File-Structure Analysis
• Top-level folders:
• TypingGameAPI (with TypingGameAPI.sln)
– Controllers (TypeGameController.cs)
– Models (Article.cs)
– Program.cs (ASP.NET Core host)
– appsettings.json / Development
• TypingGameApp (with TypingGameApp.sln)
– Forms (StartMenuForm, GameForm, CompleteTypeForm)
– Models (Article.cs)
– Services (ArticleService.cs – handles HTTP calls to API)
– Program.cs (WinForms host)
• No database; external dependency is the Dissent Magazine website.
Key README Insights
• Architecture: client–server: WinForms UI ←→ Web API ←→ external website.
• Stack: ASP.NET Core Web API, HTMLAgilityPack, .NET WinForms.