Skip to content

Instantly share code, notes, and snippets.

View chron's full-sized avatar

Paul Prestidge chron

  • UsabilityHub
  • Wellington, New Zealand
  • X @chron9
View GitHub Profile
@chron
chron / outpost18-stats-243.txt
Last active October 14, 2019 19:45
Outpost 18 stats - 2.4.3 only
Including games with rulesets: ["2.4.3"]
=== AI Games ===
Total finished games for current ruleset: 11
How often does the player who goes first win?
{ playFirst: 7, playSecond: 4 }
Games finished per day
┌─────────┬──────────────┬────┐
@chron
chron / outpost18-stats-244.txt
Last active October 14, 2019 19:46
Outpost 18 stats - 2.4.4 only
Including games with rulesets: ["2.4.4"]
=== AI Games ===
Total finished games for current ruleset: 178
How often does the player who goes first win?
{ playFirst: 104, playSecond: 74 }
Games finished per day
┌─────────┬──────────────┬────┐
@chron
chron / outpost18-stats-242.txt
Last active October 5, 2019 00:20
Outpost 18 stats - 2.4.2 only
Including games with rulesets: ["2.4.2"]
=== AI Games ===
Total finished games for current ruleset: 118
How often does the player who goes first win?
{ playFirst: 62, playSecond: 56 }
Games finished per day
┌─────────┬──────────────┬────┐
@chron
chron / outpost18-stats-241.txt
Last active October 5, 2019 00:20
Outpost 18 stats - 2.4.1 only
Including games with rulesets: ["2.4.1"]
=== AI Games ===
Total finished games for current ruleset: 224
How often does the player who goes first win?
{ playFirst: 115, playSecond: 109 }
Games finished per day
┌─────────┬──────────────┬────┐
@chron
chron / outpost18-stats-24x.txt
Last active October 5, 2019 00:15
Outpost 18 stats - All games on the 2.4.x rulesets
Including games with rulesets: ["2.4","2.4.1","2.4.2","2.4.3","2.4.4"]
=== AI Games ===
Total finished games for current ruleset: 566
How often does the player who goes first win?
{ playFirst: 294, playSecond: 272 }
Games finished per day
┌─────────┬──────────────┬────┐
│ (index) │ 0 │ 1 │
@chron
chron / faculty-vision.rb
Created May 4, 2019 02:50
Development Faculty Vision Generator 1.0
class Grammar
class << self
attr_reader :rules
def method_missing(method, *args, &block)
@rules ||= Hash.new { |h,k| h[k] = [] }
@rules[method] += [*args, block].flatten.compact
end
end

Keybase proof

I hereby claim:

  • I am chron on github.
  • I am paulprestidge (https://keybase.io/paulprestidge) on keybase.
  • I have a public key whose fingerprint is 3BF1 AA6E A63B 2B93 921A 5284 2CD3 6E75 50CC 859B

To claim this, I am signing this object:

@chron
chron / n-doors-k-monkeys.rb
Created October 21, 2013 03:42
N Doors, K Monkeys golf in ruby
gets;~/ /
n=$`.to_i
1.upto($'.to_i){|r|1.upto(r){|m|0.step(n,m){|v|$*[v]^=1}}}
$><<(1..n).select{|i|$*[i]}*' '
@chron
chron / pie-golf.rb
Created August 23, 2013 03:19
Trying to cut down the size of Jan Dvorak's answer to this golf.se question: http://codegolf.stackexchange.com/questions/12356/manage-a-pie-shop
h=Hash.new 0
loop{$><<'> '
a,b,c=gets.split
puts({list:->{h.map{|x|?|+" %%%ds |"%h.flatten.map{|e|e.to_s.size}.max*2%x}},count:->{h[b]!=0?h[b]:"There is no #{b} pie!"},buy:->{h[c]+=b.to_i},sell:->{h[c]-=b.to_i},exit:->{abort"The pie store has closed!"}}[a.intern][])rescue puts"That's not a valid command."}
@chron
chron / compare-kills-new-armory.rb
Created June 2, 2011 05:44
WoW Armory average ilvl and boss kill comparison
#
# compare-kills-new-armory.rb
# Paul Prestidge
# 2011-05-20
#
require 'fileutils'
module Armory
class ArmoryCacher