|
|
@ -1,5 +1,5 @@ |
|
|
|
#define _CRT_SECURE_NO_WARNINGS // to write faster |
|
|
|
#define re return |
|
|
|
#define re return |
|
|
|
#define N 20 // size of Play Field |
|
|
|
#include<stdio.h> |
|
|
|
#include<string.h> |
|
|
@ -7,6 +7,7 @@ |
|
|
|
#include<time.h> |
|
|
|
#include<stdbool.h> |
|
|
|
|
|
|
|
int speed = 0; |
|
|
|
|
|
|
|
int win(int realU[N][N]){ |
|
|
|
int groesste = 0; |
|
|
@ -60,7 +61,7 @@ int lose(int realU[N][N], char richtung){ |
|
|
|
else if (richtung == 'l') { |
|
|
|
if (realU[ii][jj-1] != (N*N) + 1 && realU[ii][jj-1] != 0 || jj == 0) { |
|
|
|
return 1; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
@ -73,4 +74,4 @@ int lose(int realU[N][N], char richtung){ |
|
|
|
|
|
|
|
int probe(int input){ |
|
|
|
return input; |
|
|
|
} |
|
|
|
} |