...
This commit is contained in:
parent
bdfcff1d84
commit
469e05c37a
4
day4.cs
4
day4.cs
|
@ -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}]";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user