changed two comments

This commit is contained in:
Jonas Hofmann 2025-10-28 09:30:39 +01:00
parent d1fd9b38ea
commit 7dc036df15

View File

@ -57,7 +57,7 @@ int checkIfPositionIsFree(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN]
if (position.alignment == HORIZONTAL)
{
// checking to see if position is free
// by scanning each row in the given Column
// by scanning each column in the given row
for (i = position.startingCell; (i < serchFieldLen) && !(letterFound); i++)
{
if ((salad[position.rowOrColumn][i] >= 'A') && (salad[position.rowOrColumn][i] <= 'z'))
@ -69,7 +69,7 @@ int checkIfPositionIsFree(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN]
else if (position.alignment == VERTIKAL)
{
// checking to see if position is free
// by scanning each row in the given Column
// by scanning each row in the given column
for (i = position.startingCell; (i < serchFieldLen) && !(letterFound); i++)
{
if ((salad[i][position.rowOrColumn] >= 'A') && (salad[i][position.rowOrColumn] <= 'z'))