tabulator mi dal ine slovo

This commit is contained in:
Kamil Gejdoš 2026-04-14 15:45:16 +00:00
parent 2f6a0b9a09
commit 2be5b533c3

View File

@ -52,7 +52,7 @@ int is_snake(struct snake* snake,int x,int y){
struct snake* clanok = snake;//zase idem pozerat po clankoch ci som na hadovi v koordinatoch struct snake* clanok = snake;//zase idem pozerat po clankoch ci som na hadovi v koordinatoch
while (clankoch != NULL) { // usetrim si podmienku ci nahodou nedostanem NULL hada while (clanok != NULL) { // usetrim si podmienku ci nahodou nedostanem NULL hada
if (clanok -> x == x && clanok -> y == y) { if (clanok -> x == x && clanok -> y == y) {
return 1; // mam vratit true/false, ale dostal som int funkciu, bool true false je aj tak iba jeden bit 1 alebo 0 return 1; // mam vratit true/false, ale dostal som int funkciu, bool true false je aj tak iba jeden bit 1 alebo 0
} }