diff --git a/index.html b/index.html
index e9a577f..a8f647c 100644
--- a/index.html
+++ b/index.html
@@ -349,8 +349,10 @@
}
$.fn.middleClick = function() {
+ //move this functionality to left click
+
//number of flags matches number of adjacent mines
- if ($(this).text() == $(this).getAdjacentTiles().filter('.flagged').length) {
+ if ($(this).text() == $(this).getAdjacentTiles().filter('.flagged, .revealed.mine').length) {
$(this).getAdjacentTiles().filter(':not(.flagged)').each(function() {
$(this).mousedown();
});
@@ -358,7 +360,10 @@
}
$.fn.rightClick = function() {
- if (!$(this).hasClass("revealed")) {
+ if ($(this).hasClass("revealed")) {
+ //deploy a bomb!
+ //...
+ } else {
$(this).toggleClass("flagged");
}
}