fixed readme
This commit is contained in:
parent
073fcc839b
commit
89435cd0b1
|
@ -1,3 +1,3 @@
|
|||
# Elaborato_SO
|
||||
|
||||
Lore super iper ghei++plus
|
||||
Fether super iper ghei++plus
|
11
src/forza4.c
11
src/forza4.c
|
@ -45,5 +45,14 @@ int checkWin(tile_t *board, int x, int y, int rows, int collums) {
|
|||
}
|
||||
}
|
||||
|
||||
// manca seconda diagonal
|
||||
for (i=0; i<4; i++) {
|
||||
if (y + i - 3 >= 0 && y + i < rows && x + i - 3 >= 0 && x + i < collums) {
|
||||
if (board[x - 3 + i + (y + i - 3) * collums] == board[x + i + (y + i) * collums] &&
|
||||
board[x - 2 + i + (y + i - 2) * collums] == board[x + i + (y + i) * collums] &&
|
||||
board[x - 1 + i + (y + i - 1) * collums] == board[x + i + (y + i) * collums]) {
|
||||
|
||||
return current;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue