Open jerry871002 opened 1 year ago
In BaseballGame, the state only consists of two integers, which is strike and ball count. It's better to represent them using a tuple (or even better, a namedtuple) instead of a mutable list (which doesn't show exactly what is in a state).
BaseballGame
namedtuple
In
BaseballGame
, the state only consists of two integers, which is strike and ball count. It's better to represent them using a tuple (or even better, anamedtuple
) instead of a mutable list (which doesn't show exactly what is in a state).