diff clojure/com/aurellem/gb/vbm.clj @ 604:c8cda378e1a0

fixed flaw in advanced move recording.
author Robert McIntyre <rlm@mit.edu>
date Sun, 02 Sep 2012 10:34:14 -0500
parents 25b7bb7da3b1
children
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/gb/vbm.clj	Sun Sep 02 09:33:40 2012 -0500
     1.2 +++ b/clojure/com/aurellem/gb/vbm.clj	Sun Sep 02 10:34:14 2012 -0500
     1.3 @@ -111,6 +111,9 @@
     1.4      (clojure.java.io/copy (buttons->vbm-bytes moves) target)
     1.5      target))
     1.6  
     1.7 +(defn write-moves-to-file! [moves file]
     1.8 +  (clojure.java.io/copy (buttons->vbm-bytes moves) file))
     1.9 +
    1.10  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    1.11  
    1.12  (use 'clojure.java.shell)