Conway's game of life - derived from another project, turned into a c++ class, and scaled to support up to a 480x272 display, or a lower resolution color display.

Dependents:   GameOfLife

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Wed Apr 23 22:54:34 2014 +0000
Parent:
2:c11005ab38db
Commit message:
Remove some of the debug stuff.

Changed in this revision

LifeRules.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LifeRules.cpp	Wed Apr 23 11:42:10 2014 +0000
+++ b/LifeRules.cpp	Wed Apr 23 22:54:34 2014 +0000
@@ -43,7 +43,7 @@
         uint8_t mask = b << (bitIndex);
         pLifeMap[byteIndex] = curCell | mask;
     } else {
-        ERR(" Out of Bounds value (%d, %d)\r\n", x, y);
+        error(" Out of bounds value (%d, %d)\r\n", x, y);
     }
 }
 
@@ -60,7 +60,7 @@
             b = (ValueOfLife)(b & 1);
         return b;
     } else {
-        ERR(" Out of Bounds value (%d, %d)\r\n", x, y);
+        error(" Out of Bounds value (%d, %d)\r\n", x, y);
         return dead;
     }
 }