Our great sponsors
-
dotnet-console-games
Game examples implemented as .NET console applications primarily for providing education and inspiration. :)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
If anything here caught your interest, or if you know someone who is looking for fun beginner C# projects, I encourage you to check out the repo where all the games are open source: https://github.com/ZacharyPatten/dotnet-console-games.
PacMan is... a PacMan clone in the console. Get the dots. Dodge the ghosts. It's not intended to be very faithful though. I didn't research the AI of the ghost, I just came up with my own AIs that worked. Here is what I did for the ghost AIs: - Ghost a: follows you via Dijkstra Path Finding and updates every 6 frames (faster) - Ghost b: randomly moves and updates every 6 frames (faster) - Ghost c: follows you via Dijkstra Path Finding and updates every 12 frames (slower) - Ghost d: randomly moves and updates every 12 frames (slower) Note: for this game I pulled in a reference to my nuget package Towel because it includes generic versions of the Dijkstra Path Finding algorithm.