mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-30 22:52:00 -08:00
Clean up logic, names and strings
This commit is contained in:
2
56_Life_for_Two/csharp/Resources/Draw.txt
Normal file
2
56_Life_for_Two/csharp/Resources/Draw.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
A draw
|
||||
1
56_Life_for_Two/csharp/Resources/IllegalCoords.txt
Normal file
1
56_Life_for_Two/csharp/Resources/IllegalCoords.txt
Normal file
@@ -0,0 +1 @@
|
||||
Illegal coords. Retype
|
||||
2
56_Life_for_Two/csharp/Resources/InitialPieces.txt
Normal file
2
56_Life_for_Two/csharp/Resources/InitialPieces.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
Player {0} - 3 live pieces
|
||||
3
56_Life_for_Two/csharp/Resources/Player.txt
Normal file
3
56_Life_for_Two/csharp/Resources/Player.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Player {0}
|
||||
@@ -8,10 +8,16 @@ internal static class Resource
|
||||
internal static class Streams
|
||||
{
|
||||
public static Stream Title => GetStream();
|
||||
public static Stream Draw => GetStream();
|
||||
public static Stream IllegalCoords => GetStream();
|
||||
public static Stream SameCoords => GetStream();
|
||||
}
|
||||
|
||||
internal static class Formats
|
||||
{
|
||||
public static string InitialPieces => GetString();
|
||||
public static string Player => GetString();
|
||||
public static string Winner => GetString();
|
||||
}
|
||||
|
||||
private static string GetString([CallerMemberName] string? name = null)
|
||||
|
||||
1
56_Life_for_Two/csharp/Resources/SameCoords.txt
Normal file
1
56_Life_for_Two/csharp/Resources/SameCoords.txt
Normal file
@@ -0,0 +1 @@
|
||||
Same coord. Set to 0
|
||||
2
56_Life_for_Two/csharp/Resources/Winner.txt
Normal file
2
56_Life_for_Two/csharp/Resources/Winner.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
Player {0} is the winner
|
||||
Reference in New Issue
Block a user