Browse Source

refactoring: Die Methodenbenennung an die Konvention angepasst

main
fdai7037 2 years ago
parent
commit
8a1b4483cb
  1. 10
      src/Paper-Bin.c

10
src/Paper-Bin.c

@ -27,7 +27,7 @@ int lvlnumber = 1;
#pragma region FunctionDeclaration
void addScoreboard();
void clearField();
void Generatefield();
void generateField();
void sortScoreboard();
void buildBin(int width, int height);
void getStartPosition();
@ -119,7 +119,7 @@ void loadLevel(int lvlnum)
case(11):
system("clear");
Generatefield();
generateField();
addScoreboard();
sortScoreboard();
exit(0);
@ -142,7 +142,7 @@ int main()
{
clearField();
field[ballX][ballY -= 1] = 'O';
Generatefield();
generateField();
int Ball_In_Bin = checkBallPosition();
@ -192,7 +192,7 @@ void getStartPosition()
{
field[i][ballY] = j + '0';
}
Generatefield();
generateField();
//printf("W\x84\hle die position des Balls (0-9):\n");
printf("Wähle die position des Balls (0-9):\n");
@ -220,7 +220,7 @@ void clearField()
}
}
void Generatefield()
void generateField()
{
system("clear");
buildBin(binX, binY);

Loading…
Cancel
Save