10 lines
231 B
Python
10 lines
231 B
Python
from diceplayer.config import PlayerConfig
|
|
|
|
import yaml
|
|
|
|
|
|
def read_input(infile) -> PlayerConfig:
|
|
with open(infile, "r") as f:
|
|
values = yaml.safe_load(f)
|
|
return PlayerConfig.model_validate(values["diceplayer"])
|