walk()
Walking animation function for CLI Pets.
walk(pet='🐱', steps=30, speed=0.1)
Animate a pet walking across the terminal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pet
|
str
|
Emoji character to display (default: cat) |
'🐱'
|
steps
|
int
|
Number of steps to take (default: 30) |
30
|
speed
|
float
|
Seconds between steps (default: 0.1) |
0.1
|
Source code in src\cli_pets\walk.py
6 7 8 9 10 11 12 13 14 | |