Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Example workshop implementation

  • Loading branch information...
commit 53bcca0633565b7f85e51d92070335b20e2a4f8a 1 parent 3aed4a6
Johannes Brodwall authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 riga_web_server.rb
22 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!
Please sign in to comment.
Something went wrong with that request. Please try again.