Wolf and Rabbits is an interactive simulation game created with ASP.NET Core and JavaScript. The project demonstrates the use of WebSocket technology for real-time communication between the server and client, as well as the implementation of thread synchronization mechanisms in a multi-threaded environment.
- Interactive gameplay: Control the wolf using arrow keys to hunt rabbits.
- Real-time rendering: Utilizes HTML5 Canvas for smooth display of the game state.
- WebSocket communication: Provides instant game state updates for all connected clients.
- Multi-threading: Uses Lock mechanism for safe thread synchronization.
- Responsive interface: The game adapts to different screen sizes.
- Automatic simulation: Rabbits move autonomously across the board.
- Scoring system: Tracks the number of caught rabbits.
- Game restart option: Ability to start a new game after catching all rabbits.
- .NET 6.0 or newer
- ASP.NET Core 6.0 or newer
- Modern web browser with WebSocket and HTML5 Canvas support