public
Description: Clojure library to read Starcraft replay files
Homepage:
Clone URL: git://github.com/gnuvince/clj-starcraft.git
name age message
file .gitignore Sat Feb 14 10:06:15 -0800 2009 Added build.xml [Vincent Foley]
file README Sat Feb 14 10:11:49 -0800 2009 Changed all :unknown fields for nil to save mem... [Vincent Foley]
file build.xml Sat Feb 14 10:06:15 -0800 2009 Added build.xml [Vincent Foley]
file dump.clj Sun Feb 08 16:50:51 -0800 2009 Added some missing actions (thanks to Andras Be... [Vincent Foley]
file gpl-3.0.txt Sat Feb 14 14:42:58 -0800 2009 Added GPL 3 text [Vincent Foley]
directory src/ Fri Mar 13 18:49:53 -0700 2009 Added random race [Vincent Foley]
README
Compilation
===========

ant -Dclojure.jar=<path to clojure.jar> -Dclojure-contrib.jar=<path to clojure-contrib.jar>


Usage
=====

(ns sc
  (:use [starcraft.replay.unpack]
        [starcraft.replay.utils])
  (:import [java.io File]))

(def rep (unpack (File. "LastReplay.rep")))
(:headers rep)
(unit-distribution (get-in rep [:players 0 :actions]))
(action-distribution (get-in rep [:players 0 :actions]))
(apm (get-in rep [:players 0 :actions]))