add methods to Game to access players by name

This commit is contained in:
Thorsten Rausch
2021-06-17 18:33:16 +02:00
parent be4968bb07
commit 8f30d63b03
4 changed files with 53 additions and 37 deletions

View File

@@ -3,7 +3,7 @@ class Hunter {
this.position = 0;
}
move(amount) {
move_by(amount) {
this.position += amount;
}