Add game loop

This commit is contained in:
Andrew Cooper
2022-07-13 08:04:47 +10:00
parent 04ec0f8f47
commit 013baf71a2
4 changed files with 59 additions and 12 deletions

View File

@@ -24,6 +24,8 @@ internal class Message
public static Message LegAdded = new("now have {0} legs");
public static Message LegsFull = new("I have 6 feet.", "You have 6 feet already");
public static Message Complete = new("bug is finished.");
private Message(string common)
: this("I " + common, "You" + common)
{
@@ -40,5 +42,5 @@ internal class Message
public static Message DoNotHaveA(Part part) => new($"do no have a {part.Name}");
public Message ForQuantity(int quantity) => new(string.Format(I, quantity), string.Format(You, quantity));
public Message ForValue(int quantity) => new(string.Format(I, quantity), string.Format(You, quantity));
}