dotnet-console-games
This repository is a collection of game examples implemented as .NET Core console applications primarily for providing education and inspiration. :)
Game | *Complexity | Notes |
---|---|---|
Tic Tac Toe | 1 | Console Input/Output , Random , 2D char Array |
Simon | 1 | Console Input/Output , List<T> , enum , Random |
Beep Pad | 2 | Console Input/Output , Random (multiple unique) , Queue<T> |
Minesweeper | 2 | Console Input/Output , Random (multiple unique) , Recursion |
Wumpus World | 2 | Console Input/Output , Random (multiple unique) , 2D enum Array |
Snake | 3 | TimeSpan , Collision Detection , Queue<T> |
Hurdles | 3 | TimeSpan , Animation Cycles , Collision Detection |
Pong | 3 | TimeSpan , Velocity & Acceleration , Collision Detection |
Tanks | 4 | Health/Damage Tracking , Random Enemy AI |
Helicopter | 4 | Health/Damage Tracking , Collision Detection |
Fighter | 5 | Health/Damage Tracking , Random Enemy AI |
Maze | 5 | Random Path Finding , Stack<T> , StringBuilder |
*Complexity: a relative rating for how complex/advanced the source code is.
Getting Started
Download this repository and unzip the contents
Install .NET Core
Choose a development environment:
Visual Studio [click to expand]
Install Visual Studio
Make sure you select the .NET Core
options during installation. If you forget, you can modify your installation using the Visual Studio Installer to add them.
Open the dotnet-console-games.sln solution file in Visual Studio.
Visual Studio Code [click to expand]
Install Visual Studio Code
Install the ms-vscode.csharp
extension inside Visual Studio Code.
Open the root folder of the of this repository in Visual Studio Code.
Contributing
This repository welcomes contributions.
- Notice anything you think can be improved? Open an issue.
- Want to contribute to the code? Have a game you want to share? Sign up with a GitHub account, fork the code, make some code changes, and open a pull request.