A collection of game examples implemented as .NET console applications primarily for providing education and inspiration. :)
Game | *Weight | Notes |
---|---|---|
Rock Paper Scissors | 0 | |
Quick Draw | 0 | |
Whack A Mole | 1 | |
Tic Tac Toe | 1 | |
Simon | 1 | |
Roll And Move | 1 | |
Beep Pad | 1 | Only Supported On Windows OS |
Hangman | 2 | |
Wordle | 2 | |
Memory | 2 | |
Connect 4 | 2 | |
Minesweeper | 2 | |
Wumpus World | 2 | |
Rythm | 2 | |
Type | 2 | |
Drive | 2 | |
Sliding Puzzle | 2 | |
Snake | 3 | |
Hurdles | 3 | |
Pong | 3 | |
Flappy Bird | 3 | |
Tanks | 4 | |
Helicopter | 4 | |
2048 | 4 | |
Sudoku | 4 | |
Mancala | 4 | |
Fighter | 5 | |
Maze | 5 | |
PacMan | 5 | |
Role Playing Game | 6 |
*Weight: A relative rating for how advanced the source code is.
You can play the games in your browser:
Hosted On GitHub Pages
Recommendation: Use these game examples for learning. Play the games, pick a game you like, and try to code the game yourself from scratch. If you ever get stuck, just refer to the working example.
Clone the repository or download the repository and unzip the contents. dotnet-console-games
should build with any standard .NET build process, but one of the following is recommended:
📄 Visual Studio [Expand]
Install Visual Studio if not already installed.
Note This is optional, but here are some recommended settings you change in Visual Studio.
📄 Visual Studio Code [Expand]
Install the .NET SDK if not already installed.
Install Visual Studio Code if not already installed.
Open the
![]()
root folder
of the repository in Visual Studio Code.Note The following files are included in the repository:
.vscode/extensions.json
recommends Vistual Studio Code extension dependencies.vscode/launch.json
includes the configurations for debugging the examples.vscode/settings.json
automatically applies settings to the workspace.vscode/tasks.json
includes the commands to build the projectsNote You will be prompted to install the necessary Visual Studio Code extensions when you open the folder:
- ms-dotnettools.csharp C# support
Want to show support? You can star the github repository.
Have any questions? Start a new discussion.
Find a bug or have a sugguestion? Open an issue.
Want to chat with the developer(s)? Join the discord server.
Want to contribute? Look for open issues you can help with.