|
@ -115,9 +115,9 @@ while read -s -k 1 cr; |
|
|
do |
|
|
do |
|
|
case "$cr" in |
|
|
case "$cr" in |
|
|
w) move_snake_up ; show_the_snake ;; |
|
|
w) move_snake_up ; show_the_snake ;; |
|
|
s) move_snake_down ; show_the_snake ;; |
|
|
s) move_snake_down ; show_the_snake ;; |
|
|
a) move_snake_backward ; show_the_snake ;; |
|
|
a) move_snake_backward ; show_the_snake ;; |
|
|
d) move_snake_forward ; show_the_snake ;; |
|
|
d) move_snake_forward ; show_the_snake ;; |
|
|
q) save_the_snake && at_exit ;; |
|
|
q) save_the_snake && at_exit ;; |
|
|
esac |
|
|
esac |
|
|
done |
|
|
done |
|
|