reset polja

Dependents:   ping-pong_PORJEKT ping-pong_PORJEKT

Committer:
atopcic
Date:
Mon Feb 22 08:24:36 2021 +0000
Revision:
0:406a3c5e4754
reset;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
atopcic 0:406a3c5e4754 1 // funkcija resetiranja polja loptice:
atopcic 0:406a3c5e4754 2 #include "resetpolja.h"
atopcic 0:406a3c5e4754 3
atopcic 0:406a3c5e4754 4 int polje[8][8] = {
atopcic 0:406a3c5e4754 5 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 6 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 7 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 8 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 9 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 10 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 11 {0,0,0,0,0,0,0,0},
atopcic 0:406a3c5e4754 12 {0,0,0,0,0,0,0,0}
atopcic 0:406a3c5e4754 13 };
atopcic 0:406a3c5e4754 14
atopcic 0:406a3c5e4754 15 void ResetPoljaLoptice (void){
atopcic 0:406a3c5e4754 16 for(int i=1;i<7;i++)
atopcic 0:406a3c5e4754 17 {
atopcic 0:406a3c5e4754 18 for(int j=0;j<8;j++)
atopcic 0:406a3c5e4754 19 {
atopcic 0:406a3c5e4754 20 polje[i][j]=0;
atopcic 0:406a3c5e4754 21 }
atopcic 0:406a3c5e4754 22 }
atopcic 0:406a3c5e4754 23 }