Simulating basic fight in C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Simulating basic fight in C#

Hi! First of all, I would like to apologise for my English, I come from Poland and I'm still learning. I'm a beginner programmer. I've been programming for about 2 weeks now and wanted to ask if that code I wrote for simulating basic fight in console is"OK" written. I am aware that this code will probably need a lot more understaning of C#, but just wanted to ask if that work I put into programming is worth something. Also wanted to ask for some suggestions and ask for mistakes I made in this code. Link to the code : https://code.sololearn.com/c0A15A930A21 Greetings and stay safe!

14th Jul 2021, 3:23 PM
Tymkes!
Tymkes! - avatar
3 Answers
+ 2
This code is very strong for game like this. Very good job dude :D
26th Jul 2021, 10:21 PM
Annie Lightenko
Annie Lightenko - avatar
+ 1
Hm, you can add method for console outputs to have more brilliant control and abilities in future (if you will update this game or practice with this code)
26th Jul 2021, 10:25 PM
Annie Lightenko
Annie Lightenko - avatar
+ 1
I certainly will! Thank you so much for an honest answer! :)
26th Jul 2021, 10:30 PM
Tymkes!
Tymkes! - avatar