"Hit the Mole" is a classic arcade game developed in C# using Windows Forms. The project was created as part of the PROG2EVA1 course by Javier Nieves and Daniel Torrealba.
This application is a desktop version of the "Hit the Mole" game. It features a user authentication system, a game screen where the player can hit moles to score points, a scoreboard, and an admin panel for user management.
- User Authentication: Players can create an account, log in, or play as a guest.
- Admin Panel: An admin can log in with the credentials "admin/admin" to manage users (add, delete, view).
- Game: The core of the application. Moles pop up at random, and the player must click them before they disappear. The score is tracked, and there is a timer.
- Scoreboard: The top scores are saved and displayed.
- Database Integration: The application uses a local SQL Server database to store user and score information.
To run this project, you will need to have Visual Studio and SQL Server installed.
- Visual Studio
- SQL Server
- Clone the repository or download the source code.
- Open the
.slnfile in Visual Studio. - The project uses a local SQL Server database file (
.mdf). The database should be created automatically when the application is run. The connection string is defined inClass/SQLClass.cs. If you have issues with the database connection, you may need to modify the connection string to match your SQL Server instance. - Build and run the project.
- Javier Nieves
- Daniel Torrealba