This is the Mexican Standoff prototype made by Francisco Martin and Andrew Smith. Please refer to the following link for instructions on hardware hookup: https://developer.mbed.org/users/fomartin/notebook/mexican-standoff-reaction-game/

Dependencies:   SDFileSystem mbed-rtos mbed wave_player 4DGL-uLCD-SE PinDetect

Files at this revision

API Documentation at this revision

Comitter:
fomartin
Date:
Mon Mar 14 19:14:23 2016 +0000
Parent:
1:4976bbb3376f
Commit message:
Fixed bug with player 2 pressing button during X prompt.

Changed in this revision

States/Gameplay.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4976bbb3376f -r 3c1a5079243d States/Gameplay.cpp
--- a/States/Gameplay.cpp	Mon Mar 14 16:19:47 2016 +0000
+++ b/States/Gameplay.cpp	Mon Mar 14 19:14:23 2016 +0000
@@ -71,7 +71,7 @@
                 }
                 
                 //AI will never mis-fire on hold-fire... just for simplicity's sake
-                if(numPlayers == 1 && (!P2_Left || !P2_Right))
+                if(numPlayers == 2 && (!P2_Left || !P2_Right))
                 {
                     setPoints(2, getPoints(2) - 1, uLCD);
                     led1 = 1;