restart cijelog polja

Files at this revision

API Documentation at this revision

Comitter:
atopcic
Date:
Mon Feb 22 08:25:32 2021 +0000
Commit message:
restart cijelog polja;

Changed in this revision

reset_polja.cpp Show annotated file Show diff for this revision Revisions of this file
reset_polja.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/reset_polja.cpp	Mon Feb 22 08:25:32 2021 +0000
@@ -0,0 +1,14 @@
+// funkcija resetiranja polja- postavljanje svih elemenata u polju na nulu:
+
+#include "reset_polja.h"
+extern int polje[8][8];
+
+ void ResetPolja (void){
+        for(int i=0;i<8;i++)
+    {
+        for(int j=0;j<8;j++)
+        {
+            polje[i][j]=0;
+        }
+    }            
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/reset_polja.h	Mon Feb 22 08:25:32 2021 +0000
@@ -0,0 +1,8 @@
+#ifndef RESET_POLJA_H
+#define RESET_POLJA_H
+#include "mbed.h"
+
+extern int polje[8][8];
+ 
+ void PozicijaLoptice (void);
+ #endif 
\ No newline at end of file