Skip to content

Madetre/dotnet-console-games

 
 

Repository files navigation

dotnet-console-games

flat Language C# Target Framework Discord License

A collection of game examples implemented as .NET console applications primarily for providing education and inspiration. :)

Game *Weight Notes                                                                      
Guess A Number 0 Play Now Go to Action
Rock Paper Scissors 0 Play Now Go to Action
Dice Game 0 Play Now Go to Action
*Community Contribution
Quick Draw 0 Play Now Go to Action
Whack A Mole 1 Play Now Go to Action
Tic Tac Toe 1 Play Now Go to Action
Simon 1 Play Now Go to Action
Roll And Move 1 Play Now Go to Action
Beep Pad 1 Go to Action
Only Supported On Windows OS
Draw 1 Play Now Go to Action
Hangman 2 Play Now Go to Action
Wordle 2 Play Now Go to Action
Memory 2 Play Now Go to Action
Connect 4 2 Play Now Go to Action
Minesweeper 2 Play Now Go to Action
Wumpus World 2 Play Now Go to Action
Rythm 2 Play Now Go to Action
Type 2 Play Now Go to Action
Drive 2 Play Now Go to Action
Sliding Puzzle 2 Play Now Go to Action
Snake 3 Play Now Go to Action
Hurdles 3 Play Now Go to Action
Pong 3 Play Now Go to Action
Flappy Bird 3 Play Now Go to Action
Yahtzee 4 Play Now Go to Action
Tanks 4 Play Now Go to Action
Helicopter 4 Play Now Go to Action
2048 4 Play Now Go to Action
Sudoku 4 Play Now Go to Action
Mancala 4 Play Now Go to Action
Bound 4 Play Now Go to Action
Tents 4 Play Now Go to Action
Battleship 4 Play Now Go to Action
Blackjack 5 Play Now Go to Action
Fighter 5 Play Now Go to Action
Maze 5 Play Now Go to Action
PacMan 5 Play Now Go to Action
Role Playing Game 6 Play Now Go to Action

*Weight: A relative rating for how advanced the source code is.
*Community Contribution: Special thanks to everyone who contributed games!

You can play the games in your browser:
Play Now
Hosted On GitHub Pages

Get Started

Recommendation: Use these game examples for learning. Play the games, pick a game you like, and try to code the game yourself from scratch.

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]

  1. Install Visual Studio if not already installed.

  2. Open the dotnet-console-games.slnf file in Visual Studio.

Note This is optional, but here are some recommended settings you change in Visual Studio.

📄 Visual Studio Code [Expand]

  1. Install the .NET SDK if not already installed.

  2. Install Visual Studio Code if not already installed.

  3. 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 projects

Note You will be prompted to install the necessary Visual Studio Code extensions when you open the folder:

  • ms-dotnettools.csharp C# support

Relevant Articles:
Beginner's Guide To Console Input In C# August 1, 2020
dotnet Console Games Tips And Tricks April 7, 2022

Get Involved

Want to show support? You can star the github repository.

Have any questions? Start a new discussion.

Find a bug or have a suggestion? 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.

About

Game examples implemented in .NET console applications primarily for educational purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 89.5%
  • HTML 9.6%
  • CSS 0.9%