Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hjkl #7

Closed
quite opened this issue Mar 21, 2014 · 1 comment
Closed

hjkl #7

quite opened this issue Mar 21, 2014 · 1 comment

Comments

@quite
Copy link

quite commented Mar 21, 2014

diff --git a/bash2048.sh b/bash2048.sh
index bba4d73..ae7c507 100755
--- a/bash2048.sh
+++ b/bash2048.sh
@@ -209,6 +209,13 @@ function key_react {
         D) apply_push left;;
       esac
     }
+  } || {
+    case $REPLY in
+      k) apply_push up;;
+      j) apply_push down;;
+      l) apply_push right;;
+      h) apply_push left;;
+    esac
   }
 }
@JosefZIla
Copy link
Owner

added in 282514e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants