Browse Source

Refactoring: Bauernumwandlung.c Wichtige includes ergänzt, Emman Mensdorf

main
Emman Mensdorf 11 months ago
parent
commit
14a5669abf
  1. 18
      src/Bauernumwandlung.c
  2. 3
      src/En_Passaut.c

18
src/Bauernumwandlung.c

@ -1,10 +1,24 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "spieler.h"
#include "Spielstatus.h"
#include "Moving.h"
#include "Spieler.h"
#include "Bauer.h"
#include "Turm.h"
#include "Springer.h"
#include "Koenig.h"
#include "Dame.h"
#include "Laeufer.h"
#include "Historie.h"
#include "Input.h"
#include "Bauernumwandlung.h"
#include "En_Passaut.h"
#include "Misc.h"
#include "Schachbrett.h"
#include "Speichern.h"
#include "Tutorial.h"
bool ist_umwandlung_gerlaubt_Bauer(char** Brett, int startX, int startY, int endX, int endY, Player player) {
if ((player == PLAYER_WHITE) && (endY == 7) && (Brett[startY][startX] == 'P')) {

3
src/En_Passaut.c

@ -40,7 +40,8 @@ bool ist_En_Passaut_erlaubt_Bauer(char** Brett, int startX, int startY, int endX
return false;
}
}
return false;
}
}
Loading…
Cancel
Save