test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Files at this revision

API Documentation at this revision

Comitter:
th_mbed
Date:
Tue Dec 13 14:21:35 2016 +0000
Parent:
43:73afa890c336
Child:
50:d8a6e8ddd63a
Child:
51:07cf2a4bacd0
Commit message:
zzz

Changed in this revision

Stage.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Stage.cpp	Tue Dec 13 14:14:50 2016 +0000
+++ b/Stage.cpp	Tue Dec 13 14:21:35 2016 +0000
@@ -49,6 +49,9 @@
         int start = stage[LCD_X - 1] - 8;
         if(start < 0){
             start = 0;
+            if((rand()%4)==0){
+                return 0;
+            }
         }
         int end = stage[LCD_X - 1] + 8;
         if(end > 20){