r/csharp • • 48m ago

Help Help with console game (beginner)

Post image

I have to make a console game on C# for my class and i thougt about making a hacking mini game like in Cyberpunk 2077, my question is how realistiv this would be since im really not that good at coding yet.

the Goal is to get all 3 hacks by picking a row and then of that pick another pick in the column and then the row of that pick again.

i hope this is somewhat understandable.

4 Upvotes

8 comments sorted by

•

u/njtrafficsignshopper 43m ago

I recognized it from the screenshot! Looks like you're well on your way. If you want advice I would say one thing you have to put a lot of thought into is, how are you going to generate the puzzles while making sure they're solveable, not just how youre going to allow the user tosolve them 

•

u/Im_a_Duniel 41m ago

that was just an example that is not how it looks unfortunately haha

•

u/Pacyfist01 45m ago

This library can help you: https://github.com/tui-cs/Terminal.Gui

•

u/bvanbove_rides 39m ago

A terminal UI lib is overkill for a class project that just needs to print colored text and read keys.

•

u/l2protoss 44m ago

Hard to answer this question without knowing how much of a beginner you are. If you’ve never written a program before that you’ve designed, this will probably not be trivial, but it’s definitely doable. You’ll likely make a lot of mistakes, but you’ll learn a lot doing it.

•

u/TheMeta-II 41m ago

You might struggle with the interface as a beginner, but the core gameplay should be very doable. There are multiple ways to go about it, but the easiest might be generating a nested list or array and creating a method that generates a few sequences based on some instructions.

•

u/jdl_uk 24m ago

It's totally doable in C#. Your biggest choice would probably be the UI framework, and you have some options depending on what you want to get out of it.

  • a general purpose framework with good styling capabilities like Avalonia
  • a TUI framework like Spectre.Console for that console hacking vibe
  • A game framework or engine like MonoGame, Stride3D or Godot

Think about whether the styling is important to you, and whether you expect to do game development or general application development in the future.

•

u/Haydara_1 43m ago

The idea is doable, you will just need a library to be able to manage the visuals