diff --git a/README.md b/README.md index a30c71e..7356f55 100644 --- a/README.md +++ b/README.md @@ -622,7 +622,7 @@ Here are some hints to describe your domain: - Use different state structures to speed-up state operations and implement your own state duplication, preconditions applicable and effect application operations to better describe your domain. - Replace the state copy from ``apply`` with ``@state = Marshal.load(Marshal.dump(@state))`` to deep copy any state structure, otherwise keep the current fast version or use a custom implementation. - Increase ``RUBY_THREAD_VM_STACK_SIZE`` to avoid stack overflows in very large planning instances. -- Execute the Ruby with the ``--disable=all`` flag to load the interpreter faster. +- Execute the interpreter with the ``--disable=all`` flag to load it faster. ## Comparison The main advantage of HyperTensioN is to be able to define behavior in the core language, without losing clarity, this alone gives a lot of power. diff --git a/examples/basic/basic.jshop.rb b/examples/basic/basic.jshop.rb deleted file mode 100644 index 75af7ce..0000000 --- a/examples/basic/basic.jshop.rb +++ /dev/null @@ -1,100 +0,0 @@ -# Generated by Hype -require 'C:/Users/Mau/Desktop/HyperTensioN/Hypertension' - -module Basic - include Hypertension - extend self - - #----------------------------------------------- - # Domain - #----------------------------------------------- - - @domain = { - # Operators - 'pickup' => true, - 'drop' => true, - # Methods - 'swap' => [ - 'swap_case_0', - 'swap_case_1' - ] - } - - #----------------------------------------------- - # Operators - #----------------------------------------------- - - def pickup(a) - apply_operator( - # Positive preconditions - [], - # Negative preconditions - [ - ['have', a] - ], - # Add effects - [ - ['have', a] - ], - # Del effects - [] - ) - end - - def drop(a) - apply_operator( - # Positive preconditions - [ - ['have', a] - ], - # Negative preconditions - [], - # Add effects - [], - # Del effects - [ - ['have', a] - ] - ) - end - - #----------------------------------------------- - # Methods - #----------------------------------------------- - - def swap_case_0(x, y) - if applicable?( - # Positive preconditions - [ - ['have', x] - ], - # Negative preconditions - [ - ['have', y] - ] - ) - yield [ - ['drop', x], - ['pickup', y] - ] - end - end - - def swap_case_1(x, y) - if applicable?( - # Positive preconditions - [ - ['have', y] - ], - # Negative preconditions - [ - ['have', x] - ] - ) - yield [ - ['drop', y], - ['pickup', x] - ] - end - end -end \ No newline at end of file diff --git a/examples/basic/pb1.jshop.rb b/examples/basic/pb1.jshop.rb deleted file mode 100644 index 3ab0259..0000000 --- a/examples/basic/pb1.jshop.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Hype -require_relative 'basic.jshop' - -# Objects -[["kiwi"]] = '[["kiwi"]]' -banjo = 'banjo' -kiwi = 'kiwi' - -Basic.problem( - # Start - { - 'have' => [ - [kiwi] - ] - }, - # Tasks - [ - ['swap', banjo, kiwi] - ], - # Debug - ARGV.first == 'debug' -) or abort \ No newline at end of file