mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-07 02:24:33 -08:00
Split out play resolution
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
namespace Basketball;
|
||||
|
||||
internal record Team(string Name)
|
||||
internal record Team(string Name, Action<Scoreboard> PlayResolution)
|
||||
{
|
||||
public override string ToString() => Name;
|
||||
|
||||
public void ResolvePlay(Scoreboard scoreboard) => PlayResolution.Invoke(scoreboard);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user