Home › Course contents › Level 8: First Battle
Commands
Level 8: First Battle
Chapter 1 · Starter Village
Type attack() and {PET} will use Tackle:
attack()
Just like print() it needs a pair of brackets, but this time you don't put anything inside.
Things with brackets that make your partner do something are called commands.
GoalDefeat the Dunebun (10 HP). One tackle deals 10 damage.
TipYou only need one line of code.
Starting code
# Type attack() below, then click Run