mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-07-11 22:51:35 -07:00
Add Bug and conecpt of completeness
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using BugGame.Parts;
|
||||
using BugGame.Resources;
|
||||
|
||||
namespace BugGame;
|
||||
|
||||
internal class Bug
|
||||
{
|
||||
private readonly Body _body = new();
|
||||
|
||||
public bool IsComplete => _body.IsComplete;
|
||||
|
||||
public bool TryAdd(IPart part, out Message message) => _body.TryAdd(part, out message);
|
||||
}
|
||||
Reference in New Issue
Block a user