Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Example workshop implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Apr 3, 2012
1 parent 3aed4a6 commit 53bcca0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions riga_web_server.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'rubygems'
require_relative 'lib/extreme_startup/web_server'
include ExtremeStartup
include ExtremeStartup::Questions


warmup_round = [WarmupQuestion]
simple_round = [AdditionQuestion,MaximumQuestion,RememberMeQuestion,GeneralKnowledgeQuestion]
medium_round = [MultiplicationQuestion, PrimesQuestion, SubtractionQuestion, DivisionQuestion]
advanced_round = [WebshopQuestion, SquareCubeQuestion]
hard_round = [WebshopQuestion] * 2 + [FibonacciQuestion, AdditionMultiplicationQuestion, MultiplicationAdditionQuestion,AdditionAdditionQuestion]


WebServer.settings.default_question_delay = 1
WebServer.settings.question_factory = ExtremeStartup::GatedQuestionFactory.new([
warmup_round,
simple_round,
simple_round + medium_round,
medium_round + advanced_round,
medium_round + advanced_round + hard_round
])
WebServer.run!

0 comments on commit 53bcca0

Please sign in to comment.