mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-13 13:37:38 -08:00
Fix game loop
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
namespace Basketball;
|
||||
|
||||
internal record Team(string Name, Action<Scoreboard> PlayResolution)
|
||||
internal record Team(string Name, Func<Scoreboard, bool> PlayResolution)
|
||||
{
|
||||
public override string ToString() => Name;
|
||||
|
||||
public void ResolvePlay(Scoreboard scoreboard) => PlayResolution.Invoke(scoreboard);
|
||||
public bool ResolvePlay(Scoreboard scoreboard) => PlayResolution.Invoke(scoreboard);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user