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