Permalink
Browse files

Example workshop implementation

  • Loading branch information...
1 parent 3aed4a6 commit 53bcca0633565b7f85e51d92070335b20e2a4f8a @jhannes committed Apr 3, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 riga_web_server.rb
View
@@ -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.