-#!/usr/bin/ruby1.9.1
+#!/usr/bin/ruby
# $Id$
#
# Author:: Daigo Moriwaki
#
# Sample Command lines that install prerequires will work on Debian.
#
-# * Ruby 1.9.3 or 1.8.7 (including Rubygems)
+# * Ruby 2.0.0 or later (including Rubygems)
#
-# $ sudo aptitude install ruby1.9.1
+# $ sudo aptitude install ruby
#
# * Ruby bindings for the GNU Scientific Library (GSL[http://rb-gsl.rubyforge.org/])
#
#
# * RGL: {Ruby Graph Library}[http://rubyforge.org/projects/rgl/]
#
-# $ sudo gem1.9.1 install rgl
+# $ sudo gem install rgl
#
# == Examples
#
# * (Rated) players, who played more than $GAMES_LIMIT [15] (rated) games.
#
-$:.unshift(File.dirname(File.expand_path(__FILE__)))
+require 'pathname'
+$:.unshift(File.dirname(Pathname.new(__FILE__).realpath))
require 'utils/csa-filter'
require 'yaml'
require 'time'
end
$history.add line
- time, state, black_mark, black_id, white_id, white_mark, file = line.split("\t")
+ time, state, black_mark, black_id, white_id, white_mark, file, moves = line.split("\t")
unless time && state && black_mark && black_id &&
white_id && white_mark && file
$stderr.puts "Failed to parse the line : #{line}"