ImpUnit 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ImpUnit.gemspec +1 -1
- data/lib/ImpUnit/version.rb +1 -1
- data/lib/ImpUnit.rb +30 -20
- 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: 42cd656008cd503ee77c65bbca9609d82d22556268794221e825f506427a2afb
|
4
|
+
data.tar.gz: 7140702f3392bfa6f2533c36b32bf95431bd0029d2d6eda84bad7dda75f37640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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.
|
data/lib/ImpUnit/version.rb
CHANGED
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
|
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 =
|
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
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
679
|
+
module Bianca
|
680
|
+
class SmallTalk
|
681
|
+
def self.discuss
|
682
|
+
require "programr"
|
681
683
|
|
682
|
-
|
683
|
-
|
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
|
-
|
686
|
-
#end
|
687
|
+
brains = Dir.glob("brain/*")
|
687
688
|
|
688
|
-
|
689
|
-
|
689
|
+
robot = ProgramR::Facade.new
|
690
|
+
robot.learn(brains)
|
690
691
|
|
691
|
-
|
692
|
-
#end
|
692
|
+
puts " Welcome to #{bot_name}. This is the terminal for Bianca."
|
693
693
|
|
694
|
-
|
695
|
-
|
694
|
+
while true
|
695
|
+
print "#{usr_name } >> "
|
696
|
+
s = STDIN.gets.chomp
|
696
697
|
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
#
|
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.
|
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://
|
58
|
+
homepage: https://github.com/LWFlouisa/ImpUnitApp
|
59
59
|
licenses: []
|
60
60
|
metadata: {}
|
61
61
|
post_install_message:
|