ImpUnit 0.3.0 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5c34b71fdf6b568017ef6f347318a87d30c35226c5c2707c22fe6445ea8156c
4
- data.tar.gz: 114c89c916474366ad986f770e6667c18fade0bb1753d58f455778ec39ee4345
3
+ metadata.gz: 42cd656008cd503ee77c65bbca9609d82d22556268794221e825f506427a2afb
4
+ data.tar.gz: 7140702f3392bfa6f2533c36b32bf95431bd0029d2d6eda84bad7dda75f37640
5
5
  SHA512:
6
- metadata.gz: a0c8f52c2092b84aba17f65310bbdb84663a5d4201fc355740861237bd38135df0fd9af73799a59d6d96586027815a5b42d2edc9a466dc5ebe220b76f7f93001
7
- data.tar.gz: b4aab126467240f9093d8f2939cfa96fcec4c7c385d04a15eb0bf17b73ff10b94fbff205fff012ed96491c5dc9986c2d0feb57f04f8e7369d0a72d27c7c3a985
6
+ metadata.gz: 95c9856c1da4d736d2a91e7abc7d3ff76a69024aa8d6c7401880fd74cc138657f4b08c6b3e54ca11f3345299efc67829ce29aafd26b82b66e98dfcb6a7e81963
7
+ data.tar.gz: 576f3b26ab1da9bb8fe63226ff0a3d18882836e0925077de2f9db8646f297ed17b27a3b906fe4c570dcdf064200e7415b44b659e1602825c2574b3e38b441059
data/ImpUnit.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{ImpUnit engine. The intent is a human like intelligence small enough to fit into a thumb drive.}
13
13
  spec.description = %q{Implementing the main engine and subroutines into a gem so I don't have to continuously recreate the wheel.}
14
- spec.homepage = "https://lwflouisa.github.io/ImpUnitGem"
14
+ spec.homepage = "https://github.com/LWFlouisa/ImpUnitApp"
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
17
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,3 +1,3 @@
1
1
  module ImpUnit
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/ImpUnit.rb CHANGED
@@ -543,18 +543,20 @@ end"
543
543
  if current_wingset == current_botwings
544
544
  ImpUnit::BotWings.use_form
545
545
  else
546
- if bot_input > 2
546
+ if bot_choice > 2
547
547
  ImpUnit::BotWings.reset_evo
548
548
  end
549
549
 
550
550
  puts "Form status: Changing form..."
551
551
 
552
- new_value = bot_input + 1
552
+ new_value = bot_choice + 1
553
553
 
554
554
  open("data/bot_input/input.txt", "w") { |f|
555
555
  f.puts new_value
556
556
  }
557
557
 
558
+ sleep(0.5)
559
+
558
560
  ImpUnit::BotWings.reshape
559
561
  end
560
562
 
@@ -674,30 +676,38 @@ end"
674
676
  end
675
677
  end
676
678
 
677
- #module Bianca
678
- #class SmallTalk
679
- #def self.name
680
- #end
679
+ module Bianca
680
+ class SmallTalk
681
+ def self.discuss
682
+ require "programr"
681
683
 
682
- #def self.pets
683
- #end
684
+ bot_name = File.read("data/bot_identity/name.txt").strip
685
+ usr_name = File.read("data/usr_identity/name.txt").strip
684
686
 
685
- #def self.hobbies
686
- #end
687
+ brains = Dir.glob("brain/*")
687
688
 
688
- #def self.jobs
689
- #end
689
+ robot = ProgramR::Facade.new
690
+ robot.learn(brains)
690
691
 
691
- #def self.skills
692
- #end
692
+ puts " Welcome to #{bot_name}. This is the terminal for Bianca."
693
693
 
694
- #def self.weather
695
- #end
694
+ while true
695
+ print "#{usr_name } >> "
696
+ s = STDIN.gets.chomp
696
697
 
697
- #def self.operate
698
- #end
699
- #end
700
- #end
698
+ reaction = robot.get_reaction(s)
699
+
700
+ if reaction == ""
701
+ STDOUT.puts "#{bot_name} << I have no idea."
702
+ elsif reaction == "Closing"
703
+ abort
704
+ else
705
+ STDOUT.puts "#{bot_name} << #{reaction}"
706
+ end
707
+ end
708
+ end
709
+ end
710
+ end
701
711
 
702
712
  ## Measuring the distance between objects and size of objects in space.
703
713
  #module SpatialRelationships
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ImpUnit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa
@@ -55,7 +55,7 @@ files:
55
55
  - bin/setup
56
56
  - lib/ImpUnit.rb
57
57
  - lib/ImpUnit/version.rb
58
- homepage: https://lwflouisa.github.io/ImpUnitGem
58
+ homepage: https://github.com/LWFlouisa/ImpUnitApp
59
59
  licenses: []
60
60
  metadata: {}
61
61
  post_install_message: