This commit is contained in:
Marcus Ferl 2022-12-17 19:18:51 +01:00
parent bdfcff1d84
commit 469e05c37a

View File

@ -48,7 +48,7 @@ class day4
foreach(Field field in fields)
{
field.markNumber("1");
field.markNumber("13");
field.printField();
field.checkBingo();
@ -76,7 +76,7 @@ class Field{
{
for (int j = 0; j < 5; j++)
{
if (bingoField[i, j].Contains(markNumber))
if (bingoField[i, j].Contains($"[{markNumber}]"))
{
bingoField[i, j] = $"[X{markNumber}]";
}