- 03 Jun, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 16 Apr, 2018 2 commits
-
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
+ Engine.start_loop now calls the "inventory" command after calling current_room.look * Fixed spelling error in "inventory" command
-
- 09 Apr, 2018 1 commit
-
-
Ryan McCoskrie authored
+ Added chest to test.rb * Engine.define_item and Item.clone now return their created Items * Engine.define_room and Room.clone now return their created rooms * Rewrote test.rb to take use of above changes * Fixed "swing" command - Removed "Dropped", "Placed" and "Taken" announcements
-
- 08 Apr, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 01 Apr, 2018 2 commits
-
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
-
- 28 Mar, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 06 Mar, 2018 2 commits
-
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
* Fixed crashed "help" command * Adjusted test.rb to demonstrate Item.clone and Room.clone * Bumped version number all the way up to 0.1.0 to accomdate bug fixes
-
- 27 Feb, 2018 1 commit
-
-
Ryan McCoskrie authored
+ Added container related events to test.rb * Replaced second copy of Item::on_put_content with Item::on_take_content * Item::put_content_event and Item::take_content_event are now called when needed
-
- 17 Feb, 2018 2 commits
-
-
Ryan McCoskrie authored
* Replaced mark-down link to doc/index.html with a simple instruction to find it in the source tree * Fixed white-space issues
-
Ryan McCoskrie authored
+ Added the content_put and content_take events to Item + Added RDoc annotations to EVERYTHING and saved output to doc/ * Refactored the Command and Engine Classes so that commands have to use the API instead of execute as methods of Engine * Rewrote the prompt to include the current Room's name * Engine.goto (used by "walk") no longer prints the current Room's name * Removed a redundant return statement from Item.contains_item? * Changed homepage to GitLab rep * Added capitalisation to Items in test.rb * Extensive editing of README.md * Fixed indentation in lib/twisty/Room.rb
-
- 09 Feb, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 08 Feb, 2018 3 commits
-
-
Ryan McCoskrie authored
* Fixed another Markdown error
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
* Now only one stone in test.rb * Added an apple to test.rb * Bumped version number up to 0.0.2
-
- 03 Feb, 2018 1 commit
-
-
Ryan McCoskrie authored
+ Added Engine::end_loop for use in custom commands and events + test.rb now has a win condition * Moved code in Engine::inventory to inventory command defininition in twisty.rb * Engine::inventory is now a utility method to be used in custom commands and events * Engine::loop is now Engine::start_loop * The look command is now automatically run on start * Setting of the first room is now done directly instead of through Engine::goto * Reformated item.rb
-
- 22 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
* Adjusted syntax of Engine::define_command to not require 'proc'
-
- 21 Jan, 2018 2 commits
-
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
* Fixed typing error in "take"
-
- 18 Jan, 2018 5 commits
-
-
Ryan McCoskrie authored
+ Added hash @commands to Engine containing Command instances indexed by their corresponding regular expressions + Added method add_command to Engine for creating commands + Added default command "help" that list all commands * Relocated commands definitions to lib/twisty.rb * Renamed Engine::put_by_name_name to Engine::put_item_by_id_name * Renamed Engine::put_by_name_id to Engine::put_item_by_id_name * Renamed a local variable in Engine::parse - Removed Engine::initialize_commands()
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
* Parsing is now based on regexp/proc pairs in @commands * Additional annotations in lib/twisty/engine.rb - Command aliases no longer exist
-
- 17 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 16 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 15 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 12 Jan, 2018 3 commits
-
-
Ryan McCoskrie authored
* Removed obsolete error message
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
-
- 08 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
-
- 07 Jan, 2018 1 commit
-
-
Ryan McCoskrie authored
+ Added storage and contents attributes to Item + Added protected function Entity::engine() + Added Item::look() + Added Item::contains_item?(id) + Added Item::add_item(id) and Item::del_item(id) * Gave aliases to common commands * Moved Engine::look() to Room * Minor refactoring of Engine::parse(line) * test.rb Adjusted for above and future changes
-
- 19 Dec, 2017 2 commits
-
-
Ryan McCoskrie authored
-
Ryan McCoskrie authored
-
- 17 Dec, 2017 1 commit
-
-
Ryan McCoskrie authored
+ Added storage attribute to Item * Item.new now supports an options Hash * Fixed "take" not giving feedback when applied to fixed Items * Simplified regex's in Engine::parse
-
- 08 Dec, 2017 1 commit
-
-
Ryan McCoskrie authored
* Engine::take_item_by_id now refuses to act on fixed Items * Look now explicitly states if there are no Items in a Room
-
- 06 Dec, 2017 1 commit
-
-
Ryan McCoskrie authored
-
- 05 Dec, 2017 1 commit
-
-
Ryan McCoskrie authored
+ Added "inventory" command + Added "take" command + Added Engine::give() * Fixed name comparison in Engine::take_item_by_name * Engine::take_item_by_name now reports unmatched names * Refactored Engine::take_item_by_name and Engine::take_item_by_id * Engine::loop now prints a prompt
-