Hi - Low
More Than A Game
The project integrates both front-end and back-end development, ensuring an engaging user experience. The front-end, built with Razor views and JavaScript, handles user interactions, while the back-end, developed using ASP.NET MVC, processes game logic, user sessions, and database operations. This setup enables seamless gameplay and persistent user data.
Databases With Entity Framework
Entity Framework simplifies database interactions by mapping objects to relational data. The card game uses EF Core for managing deck shuffling, player sessions, and score tracking. Migrations ensure schema consistency, while LINQ queries facilitate efficient data retrieval, maintaining real-time game state accuracy.
Model, View, Controller
The MVC pattern ensures clean separation of concerns. The Model handles game logic and database interactions, the View presents the game interface, and the Controller manages user input. This structure supports scalability, maintainability, and modular design.
Design Patterns and Lifecycle Models
The game employs transient, singleton, and scoped dependency lifecycles. Transient ensures new instances per request, singleton maintains state across sessions, and scoped confines objects to a request’s duration, optimising resource management for gameplay elements.