]> git.lizzy.rs Git - ttfe.git/blobdiff - main.c
Use wasd as control keys
[ttfe.git] / main.c
diff --git a/main.c b/main.c
index b72a53154e1d5ee200228c22543d87ed547d9648..913ff9627666168a8d3b437d0888f6730676ff90 100644 (file)
--- a/main.c
+++ b/main.c
@@ -56,16 +56,16 @@ void game_loop(board *b) {
                printf("Make a move:\n");
                fgets(c, sizeof(c), stdin);
                switch(c[0]) {
-                       case 'h':
+                       case 'a':
                                d = west;
                                break;
-                       case 'j':
+                       case 's':
                                d = south;
                                break;
-                       case 'k':
+                       case 'w':
                                d = north;
                                break;
-                       case 'l':
+                       case 'd':
                                d = east;
                                break;
                        case 'q':