rules_ai 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rules_ai.rb +88 -67
- data/lib/rules_ai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917312bdc11c8d360345f504f6a160d8c21d80b56b3c5ac06be35026e5d1f63c
|
4
|
+
data.tar.gz: 773c7dcc9056709b30d5e8a5cf4ab395c63846cbd88bb4ea310c420a6805c575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10a75fa6ac8e510d1a6d3f4f523db82fe7693080ae756314256dbae347eb09b3d121ba324826ef3b624c8c7f01649bb666e786843f8fb18fb7a6bf95272b7f05
|
7
|
+
data.tar.gz: 613f23e64aa1c446e5ad21676f56e62e1ba9c3ae3bab3edf27b16b30bb5c1a442ea909b475b588b7dc93b94fda85cf7cb19925065bf7e403bfd002fd84252137
|
data/lib/rules_ai.rb
CHANGED
@@ -6,8 +6,13 @@ module RulesAi
|
|
6
6
|
# Your code goes here...
|
7
7
|
class Rules_Set
|
8
8
|
def self.hours_passed
|
9
|
-
|
10
|
-
|
9
|
+
bot_name = File.read("data/bot_identity/name.txt").strip
|
10
|
+
|
11
|
+
print "What is your starting time? >> "
|
12
|
+
starting_time = gets.chomp.strip.to_i # % 12
|
13
|
+
|
14
|
+
print "What is your ending time? >> "
|
15
|
+
ending_time = gets.chomp.strip.to_i # %12
|
11
16
|
|
12
17
|
print "What is your working interval? >> "
|
13
18
|
time_interval = gets.chomp.to_i
|
@@ -15,7 +20,7 @@ module RulesAi
|
|
15
20
|
hours_added_start = starting_time + time_interval
|
16
21
|
hours_added_end = ending_time + time_interval
|
17
22
|
|
18
|
-
puts "If starting time was #{starting_time}:00 and ending time was #{ending_time}:00
|
23
|
+
puts "#{bot_name}: If starting time was #{starting_time}:00 and ending time was #{ending_time}:00,\nthe new time alottments are #{hours_added_start}:00 and #{hours_added_end}:00."
|
19
24
|
end
|
20
25
|
|
21
26
|
def self.tesla_multiplication
|
@@ -103,7 +108,8 @@ module RulesAi
|
|
103
108
|
coping = File.read("syllables/coping.txt").strip
|
104
109
|
devilgoodcompany = File.read("syllables/devilgoodcompany.txt").strip
|
105
110
|
dianacyberneticdreams = File.read("syllables/dianacyberneticdreams.txt").strip
|
106
|
-
dontfallback = File.read("syllables/
|
111
|
+
dontfallback = File.read("syllables/dontfallback.txt").strip
|
112
|
+
droptheidealogies = File.read("syllables/droptheideologies.txt").strip
|
107
113
|
flalaikurose = File.read("syllables/flalaikurose.txt").strip
|
108
114
|
girlnothingbutadream = File.read("syllables/goodopticsinthetropics.txt").strip
|
109
115
|
haywiremeltingdown = File.read("syllables/haywiremeltingdown.txt").strip
|
@@ -137,73 +143,88 @@ module RulesAi
|
|
137
143
|
windmillsong = File.read("syllables/windmillsong.txt").strip
|
138
144
|
|
139
145
|
## Assign Each Poem To Large String
|
140
|
-
super_poem =
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
146
|
+
super_poem = [
|
147
|
+
allistodust,
|
148
|
+
alongforestgreen,
|
149
|
+
anarchojean,
|
150
|
+
atmydoor,
|
151
|
+
badinbed,
|
152
|
+
beingmyself,
|
153
|
+
coping,
|
154
|
+
devilgoodcompany,
|
155
|
+
dianacyberneticdreams,
|
156
|
+
dontfallback,
|
157
|
+
droptheidealogies,
|
158
|
+
flalaikurose,
|
159
|
+
girlnothingbutadream,
|
160
|
+
haywiremeltingdown,
|
161
|
+
inthislandoftennessee,
|
162
|
+
invisibleminorities,
|
163
|
+
juicyneonsteak,
|
164
|
+
lackofcommunication,
|
165
|
+
laimencoformoonlight,
|
166
|
+
leadwithfeelingnotthemind,
|
167
|
+
littleants,
|
168
|
+
lonelypetalswither,
|
169
|
+
marrowlust,
|
170
|
+
mmesmiled,
|
171
|
+
momentarysilence,
|
172
|
+
neveradrollmoment,
|
173
|
+
newlaconia,
|
174
|
+
nightlystatues,
|
175
|
+
sentimentality,
|
176
|
+
shadowonthewall,
|
177
|
+
shotgungirl,
|
178
|
+
skeletonsfinallaugh,
|
179
|
+
sliceoflife,
|
180
|
+
spidersandtheghost,
|
181
|
+
superyacht,
|
182
|
+
thegirlwiththerosecheeks,
|
183
|
+
turntodust,
|
184
|
+
undertheweepingwillowtree,
|
185
|
+
unravelingfriendship,
|
186
|
+
waitinginthewall,
|
187
|
+
whattheysayofrome,
|
188
|
+
windmillsong,
|
189
|
+
]
|
190
|
+
|
191
|
+
ran_1 = rand(8) % 12
|
192
|
+
ran_2 = rand(8) % 12
|
193
|
+
ran_3 = rand(8) % 12
|
194
|
+
ran_4 = rand(8) % 12
|
195
|
+
ran_5 = rand(8) % 12
|
196
|
+
ran_6 = rand(8) % 12
|
197
|
+
ran_7 = rand(8) % 12
|
198
|
+
ran_8 = rand(8) % 12
|
199
|
+
|
200
|
+
poem_1 = super_poem[ran_1].split(",")
|
201
|
+
poem_2 = super_poem[ran_2].split(",")
|
202
|
+
poem_3 = super_poem[ran_3].split(",")
|
203
|
+
poem_4 = super_poem[ran_4].split(",")
|
204
|
+
poem_5 = super_poem[ran_5].split(",")
|
205
|
+
poem_6 = super_poem[ran_6].split(",")
|
206
|
+
poem_7 = super_poem[ran_7].split(",")
|
207
|
+
poem_8 = super_poem[ran_8].split(",")
|
185
208
|
|
186
209
|
## Output New Poem From Shuffled String
|
187
|
-
line_1 =
|
188
|
-
line_2 =
|
189
|
-
line_3 =
|
190
|
-
line_4 =
|
191
|
-
line_5 =
|
192
|
-
line_6 =
|
193
|
-
line_7 =
|
194
|
-
line_8 =
|
210
|
+
line_1 = poem_1[0]
|
211
|
+
line_2 = poem_2[1]
|
212
|
+
line_3 = poem_3[2]
|
213
|
+
line_4 = poem_4[3]
|
214
|
+
line_5 = poem_5[4]
|
215
|
+
line_6 = poem_6[5]
|
216
|
+
line_7 = poem_7[6]
|
217
|
+
line_8 = poem_8[7]
|
195
218
|
|
196
219
|
open("output/poetry/poem.txt", "w") { |f|
|
197
|
-
f.puts
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
#{line_8}
|
206
|
-
"
|
220
|
+
f.puts line_1# .strip
|
221
|
+
f.puts line_2# .strip
|
222
|
+
f.puts line_3# .strip
|
223
|
+
f.puts line_4# .strip
|
224
|
+
f.puts line_5# .strip
|
225
|
+
f.puts line_6# .strip
|
226
|
+
f.puts line_7# .strip
|
227
|
+
f.puts line_8# .strip
|
207
228
|
}
|
208
229
|
end
|
209
230
|
|
data/lib/rules_ai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rules_ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gitea
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a collection of different rules based functions, from calculating
|
14
14
|
how many hours have passed, tesla multiplication, autonomous prompting ( such as
|