EmergentSemanticDialogueFramework 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b409254a4a4e80786c0c866e260cf328ad6dcac36935f4a6a6690cd7714ef10
4
- data.tar.gz: c4e5c0aba0a0e3693ddf9d6b2fd21efbf58b9548637b45db773393032f6f894f
3
+ metadata.gz: 9f633a7cf98a998d7446bad36584237d4a9bfbf826f92bdfe3ac3a655fa03a4d
4
+ data.tar.gz: 4f737ebf7d93d8e982e84f63fa419315a351c2a29fc2f9d78881cbb330c536c5
5
5
  SHA512:
6
- metadata.gz: f3e0e9256f8a6699c3ca922f206780c9ecc1ef70812db4889633df03ef5eba4146c318b37b2652ce9736f93419015a18a0061361ec0513f78d3938acee7fe4e1
7
- data.tar.gz: e589ae08ad7e0d5971ebf85405d54e8dc920119787e05928f24552c9e87d8454f59b67542c90ecef44772dbad124de10c1b98a500919cbe81867303964475efd
6
+ metadata.gz: 2e83319ec9e131fa35163a17d25a94d2dc973b783c1404adb8bccbbe7f5c22c3ac08429509e0557b922adcd4f8ab0ca0e1c91df3da8de5be05e0da0c682be6e3
7
+ data.tar.gz: b4bc9c0d90df38b6bc71e7cbf4f14659d787e12e66c368e9bff978aed608a2a83f138faed5e0f04003d6ae9139161f7085e29282cd351feb20a608de3047db78
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EmergentSemanticDialogueFramework
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -381,12 +381,12 @@ module EmergentSemanticDialogueFramework
381
381
  col_options_charge = [0, 1, 2]
382
382
  arr_options_charge = [0, 1]
383
383
 
384
- c_cur_row = row_options_vortex.sample
385
- c_cur_col = col_options_vortex.sample
386
- c_cur_arr = arr_options_vortex.sample
384
+ c_cur_row = row_options_charge.sample
385
+ c_cur_col = col_options_charge.sample
386
+ c_cur_arr = arr_options_charge.sample
387
387
 
388
388
  chosen_vortex_value = nested_vortex[v_cur_row][v_cur_col][v_cur_arr]
389
- chosen_charge_vlaue = nested_charge[c_cur_row][c_cur_col][c_cur_arr]
389
+ chosen_charge_value = nested_charge[c_cur_row][c_cur_col][c_cur_arr]
390
390
 
391
391
  ## Vortex Loop
392
392
  chosen_vortex_value.times do
@@ -394,17 +394,17 @@ module EmergentSemanticDialogueFramework
394
394
  size_limit = possible_lines.size.to_i
395
395
  index = 0
396
396
 
397
- ideal_line = possible_line[chosen_vortex_value]
397
+ ideal_line = possible_lines[chosen_vortex_value].to_s
398
398
 
399
399
  size_limit.times do
400
- current_line = possible_lines[index]
400
+ current_line = possible_lines[index].to_s
401
401
 
402
402
  if current_line == ideal_line
403
403
  File.open("lib/npc/learned_lines.txt", "a") { |f|
404
404
  f.puts current_line
405
405
  }
406
406
  else
407
- #puts "> Current line did not match the ideal dialogue line..."
407
+ puts "> Current line did not match the ideal dialogue line..."
408
408
  end
409
409
 
410
410
  index = index + 1
@@ -417,10 +417,10 @@ module EmergentSemanticDialogueFramework
417
417
  size_limit = learned_lines.size.to_i
418
418
  index = 0
419
419
 
420
- ideal_line = learned_line[chosen_vortex_value]
420
+ ideal_line = learned_lines[chosen_vortex_value].to_s
421
421
 
422
422
  size_limit.times do
423
- current_line = learned_lines[index]
423
+ current_line = learned_lines[index].to_s
424
424
 
425
425
  if current_line == ideal_line
426
426
  File.open("lib/npc/reinforced_lines.txt", "a") { |f|
@@ -433,6 +433,7 @@ module EmergentSemanticDialogueFramework
433
433
  index = index + 1
434
434
  end
435
435
  end
436
+
436
437
  end
437
438
  end
438
439
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: EmergentSemanticDialogueFramework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa