Skip to content

Instantly share code, notes, and snippets.

@ragaskar
Created May 13, 2015 13:17
Show Gist options
  • Save ragaskar/165870dfab4653389931 to your computer and use it in GitHub Desktop.
Save ragaskar/165870dfab4653389931 to your computer and use it in GitHub Desktop.
######################
# A tool for facilitating retros (esp. ones with remote attendees)
# Usage:
# 1. new up a rando object in an irb session
# 2. Add everyone who arrives at the retro by passing strings to the .add method (can take one or many names)
# 3. Ask everyone to write topics on notecards (one topic per card). This can be themed ('one thing to change & why'), or not ('happy', 'meh', 'sad')
# 4. call .next, ask that person to read their card aloud. Use a timer + do a Roman vote to continue on the topic every 5 min.
######################
class Rando
def initialize
@pivots = []
end
def add(*pivots)
@pivots.push(*pivots)
end
def delete(pivot)
@pivots.delete(pivot)
end
def next
return "THIS MEETING IS OVER" if @pivots.empty?
victim = delete(@pivots.sample)
"Hey #{victim}, read us your card"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment