diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | main.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ My own toy implementation of 2048 on the command line. -It supports hjkl for movements and q for quit. +It supports wasd for movements and q for quit. @@ -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': |