about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hanoi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hanoi.lua b/src/hanoi.lua
index b0a75cd..c4080ea 100644
--- a/src/hanoi.lua
+++ b/src/hanoi.lua
@@ -53,10 +53,10 @@ end
 
 local function update(screen)
   screen:mvaddstr(screen:lines()-2, 5, "tower to remove top disk from? ")
-  local from = string.byte(screen:getch()) - 96
+  local from = screen:getch() - 96
   curses.refresh()
   screen:mvaddstr(screen:lines()-1, 5, "tower to stack it on? ")
-  local to = string.byte(screen:getch()) - 96
+  local to = screen:getch() - 96
   curses.refresh()
   make_move(from, to)
 end