struct

Player

Inherits Struct < Value < Object

Constants

VALID = ["Sword", "Bow"]

Constructors

new(name : String = "Alice")
Source

Instance methods

add_item(item : String)
Source
items
Source
items=(items : Array(String))
Source
name
Source
name=(name : String)
Source