mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Fix game loop and finished message
This commit is contained in:
@@ -27,7 +27,7 @@ internal class Message
|
||||
public static Message Complete = new("bug is finished.");
|
||||
|
||||
private Message(string common)
|
||||
: this("I " + common, "You" + common)
|
||||
: this("I " + common, "You " + common)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ internal class Message
|
||||
public string I { get; }
|
||||
public string You { get; }
|
||||
|
||||
public static Message DoNotHaveA(Part part) => new($"do no have a {part.Name}");
|
||||
public static Message DoNotHaveA(Part part) => new($"do not have a {part.Name}");
|
||||
|
||||
public Message ForValue(int quantity) => new(string.Format(I, quantity), string.Format(You, quantity));
|
||||
}
|
||||
Reference in New Issue
Block a user