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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c28014b3ec5a7d993faad3da21e776537c7ec8b75d37bb3ebb44e62fce0c71e
4
- data.tar.gz: 6a41fb0f98f8ed01e23fdd0a97aa8c4c66209896bd7a256588d715fdc3b5eb37
3
+ metadata.gz: f37f06f2c40699c727d1506a2b297d5c0a01b6fd6b3ce5821f445b68fe06ee01
4
+ data.tar.gz: a85040cd529e596d6b94c64af0703aefb30d63d2c284754e21a80e6d0a1bb090
5
5
  SHA512:
6
- metadata.gz: 4a423701f308c215cbdb966a8ff0108b8674f0fef18f3e2f1a4704d5c0db7a5d13dead765e7a3920187a6b831f7ec64953021623afb538ee2c19404a018e5ecf
7
- data.tar.gz: a75c4c363844c3bd48d09c259b3bdc4cca9171a8fa9f9fcd46cdc889d643193902ecf86e675a5d22a3331b8e3a88b3db2844250042dcfd364ce1cddd0845a655
6
+ metadata.gz: d4ceb974f6e7b21a85182351e38bbb1d0b9d96fdaf2bd9da8cc3788691d1e47baab44fea445a20911a2a10e67e5bd73b1b3ccc664ac2f369e3aa3291176fe19b
7
+ data.tar.gz: 1898f83b1c4f94c594212272c4bdfb6851470eb4da2ee5e42a39e70e9bf954e127351f069f6d2a90b9bf4cbb2edac31bb936736436783d8908c06899b8d4dfce
@@ -5,11 +5,11 @@ module Botwings
5
5
 
6
6
  class BotWings
7
7
  def self.reset_evo
8
- number = File.read("data/number/input.txt").strip.to_i
8
+ reset_usr_input = 0
9
9
 
10
- if number > 3
11
- number = 0
12
- end
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 current wing model is: #{current_wingset}', 'en'")
46
- system("tts 'The current bot wing model is: #{current_botwings}', 'en'")
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
- FitnessFunction::BotWings.reshape
64
+ Botwings::BotWings.reshape
63
65
  end
64
66
  end
65
67
  end
@@ -1,3 +1,3 @@
1
1
  module Botwings
2
- VERSION = "0.1.0"
2
+ VERSION = "0.6.0"
3
3
  end
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.1.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-28 00:00:00.000000000 Z
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