Skip to content
This repository
Browse code

Increased scale for excitedness and confusion for Alex to be unblocke…

…d with generation.
  • Loading branch information...
commit 39cdd2edc4c5f67f854b5bd8375f763e206ac6cf 1 parent 1b53478
authored March 09, 2012

Showing 1 changed file with 14 additions and 3 deletions. Show diff stats Hide diff stats

  1. 17  app.rb
17  app.rb
@@ -9,7 +9,18 @@
9 9
 class TwitterBeats
10 10
     @@debug = :high # PurdyPrint debug var
11 11
 
12  
-
  12
+    @@parsers = {
  13
+        :text_mood => {
  14
+            :instance   => nil,
  15
+            :result     => nil,
  16
+            :weight     => nil,
  17
+        },
  18
+        :text_mood => {
  19
+            :instance   => nil,
  20
+            :result     => nil,
  21
+            :weight     => nil,
  22
+        },
  23
+    }
13 24
 
14 25
     def initialize
15 26
         pp :info, "TwitterBeats initializing..."
@@ -48,12 +59,12 @@ def initialize
48 59
                                     capped_total_happiness = 10 if total_happiness > 10
49 60
                                     capped_total_happiness = -10 if total_happiness < -10
50 61
 
51  
-                                    total_excitement = Integer(info[1]*10) - Integer(info[0]*5) #followerspertweet * 10 - boringimages * 5
  62
+                                    total_excitement = (Integer(info[1]*10) - Integer(info[0]*5))*2 #followerspertweet * 10 - boringimages * 5
52 63
                                     capped_total_excitement = total_excitement
53 64
                                     capped_total_excitement = 10 if total_excitement > 10
54 65
                                     capped_total_excitement = -10 if total_excitement < -10
55 66
 
56  
-                                    total_randomness = -10 + Integer(syms[1]) + rand(5) #-10 + '?' + rand(5)
  67
+                                    total_randomness = (-10 + Integer(syms[1]) + rand(5))*2 #-10 + '?' + rand(5)
57 68
                                     capped_total_randomness = total_randomness
58 69
                                     capped_total_randomness = 10 if total_excitement > 10
59 70
                                     capped_total_randomness = -10 if total_excitement < -10

0 notes on commit 39cdd2e

Please sign in to comment.
Something went wrong with that request. Please try again.