From e8d461733979072ac465836750a467ee5dfca067 Mon Sep 17 00:00:00 2001 From: Siamak Date: Fri, 10 Feb 2023 02:21:25 +0100 Subject: [PATCH] Grenzen erweitern --- src/Spiellogik.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Spiellogik.c b/src/Spiellogik.c index 8bd781a..3ffaadb 100644 --- a/src/Spiellogik.c +++ b/src/Spiellogik.c @@ -77,7 +77,11 @@ int update(int realU[N][N],char richtung) { int ii, jj; for(int i = 0; i < N; i++) { for(int j = 0; j < N; j++) { - + if(realU[N][N] > groesste && realU[N][N] != (N * N) + 1) { + groesste = realU[i][j]; + ii = j; + jj = i; + } } } }