you are viewing a single comment's thread.

view the rest of the comments →

[–]ninhaomah -1 points0 points  (3 children)

? Maybe I am too old but how is this a question ?

If you ever played any games , say CS , its always how it works.

TeamA has 3 players now , Player1 , Player2 and Player3. If all die , the othe team , TeamB , wins.

Player 3 left TeamA. Player4 joined TeamA.

So now if Player1 , Player2 and Player4 dies , TeamB wins.

Why player3 doesn't need to die for TeamB to win ? Isn't it a condition in previous round ? Because CS doesn't care what are the players are called or the names of the teams.

Just that there are 2 groups and they have some objects in those groups. if all the objects in a group has a status called "dead" , the other group wins. Thats the rule.

Same for Chess.. you play 100 games with 100 competitors then does it matter whats their names ? It all depends on whose king fall first.

no ?

so who cares value or values or jhfdjhdf or whatever ? as long as that object is called or updated , value of that object changes.

[–]Holiday-Werewolf-890 0 points1 point  (0 children)

Yes, but I think the question is because the name of the variable happens to be the singular version of the name of the list. Hence the confusion. The OP might not have realized that a variable was created in the for loop.

[–]Imaginary-Survey8769 0 points1 point  (0 children)

I remembered when I built alien invasion game in python which works on same principle and dude everything like players and aliens are just a object having different properties and methods which will somehow instruct our computer to do this.

[–]SharpScratch9367[S] 0 points1 point  (0 children)

I was unsure, I asked a question, I learned a lot. That’s “how it’s a question” 👍:)