Complete game

This commit is contained in:
drewjcooper
2023-01-28 16:30:49 +11:00
parent 3e88424a52
commit 3f2dd9f0a9
8 changed files with 131 additions and 116 deletions

View File

@@ -12,7 +12,6 @@ internal static class Resource
public static Stream YesOrNo => GetStream();
public static Stream Board => GetStream();
public static Stream IllegalStart => GetStream();
public static Stream ComputerMove => GetStream();
public static Stream IllegalMove => GetStream();
public static Stream Forfeit => GetStream();
public static Stream IWin => GetStream();
@@ -28,9 +27,9 @@ internal static class Resource
public static string Anyone => GetPrompt();
}
internal static class Formats
internal static class Strings
{
public static string Balance => GetString();
public static string ComputerMove(Position position) => string.Format(GetString(), position);
}
private static string GetPrompt([CallerMemberName] string? name = null) => GetString($"{name}Prompt");