mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
CSHARP-16 Fix printing bug
This commit is contained in:
@@ -23,13 +23,16 @@ internal class Head : ParentPart
|
||||
|
||||
public void AppendTo(StringBuilder builder, char feelerCharacter)
|
||||
{
|
||||
_feelers.AppendTo(builder, feelerCharacter);
|
||||
builder
|
||||
.AppendLine(" HHHHHHH")
|
||||
.AppendLine(" H H")
|
||||
.AppendLine(" H O O H")
|
||||
.AppendLine(" H H")
|
||||
.AppendLine(" H V H")
|
||||
.AppendLine(" HHHHHHH");
|
||||
if (IsPresent)
|
||||
{
|
||||
_feelers.AppendTo(builder, feelerCharacter);
|
||||
builder
|
||||
.AppendLine(" HHHHHHH")
|
||||
.AppendLine(" H H")
|
||||
.AppendLine(" H O O H")
|
||||
.AppendLine(" H H")
|
||||
.AppendLine(" H V H")
|
||||
.AppendLine(" HHHHHHH");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user