New player

Report a typo

Suppose we are creating some game, and each game should have characters. Let's create one and customize its initial characteristics, such as name, health points, strength points and whether the character is playable or NPC (non-playable character). Variables name, hp, sp and npc should be used for that accordingly. Decide which variable should take what type and complete the code.

Fill in the gaps with the relevant elements
 name = ;
 hp = , sp = ;
 npc = ;
"Hyperskill"2510Stringint1025falseboolean
___

Create a free account to access the full topic