botwings 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/botwings.rb +9 -7
- data/lib/botwings/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: f37f06f2c40699c727d1506a2b297d5c0a01b6fd6b3ce5821f445b68fe06ee01
|
4
|
+
data.tar.gz: a85040cd529e596d6b94c64af0703aefb30d63d2c284754e21a80e6d0a1bb090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ceb974f6e7b21a85182351e38bbb1d0b9d96fdaf2bd9da8cc3788691d1e47baab44fea445a20911a2a10e67e5bd73b1b3ccc664ac2f369e3aa3291176fe19b
|
7
|
+
data.tar.gz: 1898f83b1c4f94c594212272c4bdfb6851470eb4da2ee5e42a39e70e9bf954e127351f069f6d2a90b9bf4cbb2edac31bb936736436783d8908c06899b8d4dfce
|
data/lib/botwings.rb
CHANGED
@@ -5,11 +5,11 @@ module Botwings
|
|
5
5
|
|
6
6
|
class BotWings
|
7
7
|
def self.reset_evo
|
8
|
-
|
8
|
+
reset_usr_input = 0
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
open("data/number/input.txt", "w") { |f|
|
11
|
+
f.puts reset_usr_input
|
12
|
+
}
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.use_form
|
@@ -33,6 +33,8 @@ module Botwings
|
|
33
33
|
def self.reshape
|
34
34
|
system("clear")
|
35
35
|
|
36
|
+
model_type = File.read("data/model/model_type.txt").strip
|
37
|
+
|
36
38
|
bot_choice = File.read("data/bot_input/input.txt").strip.to_i
|
37
39
|
number = File.read("data/number/input.txt").strip.to_i
|
38
40
|
|
@@ -42,8 +44,8 @@ module Botwings
|
|
42
44
|
current_wingset = usr_wings[number]
|
43
45
|
current_botwings = bot_wings[bot_choice]
|
44
46
|
|
45
|
-
system("tts 'The
|
46
|
-
system("tts 'The
|
47
|
+
system("tts 'The user #{model_type} model is: #{current_wingset}', 'en'")
|
48
|
+
system("tts 'The bot #{model_type} model is: #{current_botwings}', 'en'")
|
47
49
|
|
48
50
|
if current_wingset == current_botwings
|
49
51
|
use_form
|
@@ -59,7 +61,7 @@ module Botwings
|
|
59
61
|
}
|
60
62
|
end
|
61
63
|
|
62
|
-
|
64
|
+
Botwings::BotWings.reshape
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
data/lib/botwings/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: botwings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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-10-
|
11
|
+
date: 2020-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Follows a simple formula: compares user dataset to bot dataset. If user
|
14
14
|
string doesn''t match, increment one input value. Repeat until string matches, and
|