add R key to restart game
add R key to restart game

--- a/js/keyboard_input_manager.js
+++ b/js/keyboard_input_manager.js
@@ -60,6 +60,11 @@
         event.preventDefault();
         self.emit("move", mapped);
       }
+    }
+
+    // R key restarts the game
+    if (!modifiers && event.which === 82) {
+      self.restart.call(self, event);
     }
   });
 

comments