Razara

chess takeDown

May 22nd, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. h = fs.open("currentPiece","r")
  2. piece = h.readLine()
  3. h.close()
  4.  
  5. if piece ~= "" then
  6. shell.run("goStart")
  7.  shell.run("demolish",piece)
  8.  shell.run("goHome")
  9. end
  10.  
  11. h = fs.open("currentPiece","w")
  12. h.write("")
  13. h.close()
Advertisement
Add Comment
Please, Sign In to add comment