mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
19 lines
348 B
C#
19 lines
348 B
C#
namespace Animal
|
|
{
|
|
public class Branch
|
|
{
|
|
public string Text { get; set; }
|
|
|
|
public bool IsEnd => Yes == null && No == null;
|
|
|
|
public Branch Yes { get; set; }
|
|
|
|
public Branch No { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Text} : IsEnd {IsEnd}";
|
|
}
|
|
}
|
|
}
|