Refactored box to use number instead of list of objects

This commit is contained in:
Martin Berg Alstad
2023-07-22 21:20:30 +02:00
parent d98293e3e7
commit 12b40702c8
12 changed files with 49 additions and 76 deletions

View File

@ -24,8 +24,7 @@ internal static class Players
internal static Box CreateBox(string colour) =>
new()
{
Colour = colour,
Pellets = new List<Pellet>()
Colour = colour
};
internal static Player Clone(this Player player) =>