reset polja

Dependents:   ping-pong_PORJEKT ping-pong_PORJEKT

resetpolja.cpp

Committer:
atopcic
Date:
2021-02-22
Revision:
0:406a3c5e4754

File content as of revision 0:406a3c5e4754:

// funkcija resetiranja polja loptice:
#include "resetpolja.h"

int polje[8][8] = {
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0},
  {0,0,0,0,0,0,0,0}
};

 void ResetPoljaLoptice (void){
        for(int i=1;i<7;i++)
    {
        for(int j=0;j<8;j++)
        {
            polje[i][j]=0;
        }
    } 
}