gnuvince / clj-starcraft
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Vincent Foley (author)
Fri Mar 13 18:49:53 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README | ||
| |
build.xml | ||
| |
dump.clj | ||
| |
gpl-3.0.txt | ||
| |
src/ |
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]))

