Skip to content

Instantly share code, notes, and snippets.

@cadwallion
Created October 2, 2011 03:51
Show Gist options
  • Save cadwallion/1257017 to your computer and use it in GitHub Desktop.
Save cadwallion/1257017 to your computer and use it in GitHub Desktop.
SC2 Replay Analyzer
Create a program that takes 2 parameters: a directory of SC2 replays, and a player name. You will find two template files listed below. Create the files of the same name and copy the code provided. When you are finished, run 'bundle install' to install the SC2 Replay Parser library, called Tassadar. You will find information about Tassadar, including source code, at https://github.com/agoragames/tassadar/
The program should calculate the wins and losses for all games played by the passed player, and output:
* Total Games Played (by the player passed)
* Games Won (by the player passed)
* Games Lost (by the player passed)
source "http://rubygems.org"
gem 'tassadar', :git => 'git://github.com/agoragames/tassadar.git'
require 'bundler/setup'
require 'tassadar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment