ImpUnit 0.2.9 → 0.3.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ImpUnit/version.rb +1 -1
  3. data/lib/ImpUnit.rb +29 -19
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a06af369172d2087a48d9538229b548c15ee5f77b184b4452d0727ae22b1d1a2
4
- data.tar.gz: e6c2c08a736ad5d3d6a07a3b546ac9af7e764d1fdcd716939ac8772da87ef0c4
3
+ metadata.gz: 7ee804d5e128a2beca2ddcd5900c2df26d1e9d8ad02b7fc2e20d8572ea046471
4
+ data.tar.gz: 4bc2eaef1d73f526cb6a904fda0a65afc225da7a18ef41f946d1dd95e5793b27
5
5
  SHA512:
6
- metadata.gz: 0056741617f311c861abdefd3a5a77fd27561564a22fb381525d6673dd1054de9c21b5e663da0a7fc18da16d7298054ec5f45e35040c4c13eaaf932f807aec7b
7
- data.tar.gz: 935338d1b9ed5a902128107c80acdeecad442949665231045eba8c28d8867b0215c7a89246a03d5a28599484dfc5ce1dde880bd60b825769547a37fc51f2a73d
6
+ metadata.gz: 7bc97dd0b99af7ef6022465c7f115ea7e3ed0a8394342ee38cbad70f2a6d119ee0f5fc0b66affdae74867f1da601c4ee84efff7adde1b0183076221b4f182e6b
7
+ data.tar.gz: 96824776c678112e1df0808d00cb16cff440a6b07580dc31f9ef0dd2c9796ae2598ab458a68cd28da757a91e0b0632d4836558dd7fd41464df64e9babef4bb8a
@@ -1,3 +1,3 @@
1
1
  module ImpUnit
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.3"
3
3
  end
data/lib/ImpUnit.rb CHANGED
@@ -549,12 +549,14 @@ end"
549
549
 
550
550
  puts "Form status: Changing form..."
551
551
 
552
- new_value = bot_wings + 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.2.9
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa