DEV Community

Discussion on: More Than Just CRUD with .NET Core 3.1 - Part 2

Collapse
 
_patrickgod profile image
Patrick God

Hi Bibek,
Sure. The while loop runs as long as defeated is set to false - pay attention to the ! in the condition that checks if defeated is set to false, which is the case in the beginning.
As soon as one character has been defeated, we set the variable to true, and the fight stops. Makes sense?

Hope this helps.

Take care,
Patrick

Collapse
 
bibek100 profile image
Bibek

I got it. I thought !defeated will be changed to true after doing this since it was declared false for the first time

Thread Thread
 
bibek100 profile image
Bibek

Anyway, your whole course is great. Do you have other courses related to .net and react

Thread Thread
 
_patrickgod profile image
Patrick God

Thank you very much! :)

I'm currently working on a .NET 5 and a Blazor course. Would that be of interest to you?

Take care,
Patrick

Thread Thread
 
bibek100 profile image
Bibek

Yeah I am really interested!! Are you gonna post about it pretty soon?

Thread Thread
 
_patrickgod profile image
Patrick God

I try. ;)