Enhanced CLI ~ Parsing Specification Doc - uchicago-cs/chiventure GitHub Wiki

Overview

Team: Faruk Badur, Brianna Zeng, Kate Shchukina, Matteo Restuccia, Miles Gardner

Below is the specification for our enhanced CLI this quarter

Goals

Implement a parser using Bison/Flex which will

  • recognize alternative commands
    • eg:
      • go, head, move, walk, all should have the same result
      • look & where, all should have the same result
  • add misspell suggestions to arguments of commands
    • eg:
      • "take chiar" should suggest "take chair" when the chair is an available object, but only says it can't find the item. If the argument is not similar to an object can't be found, should suggest another object in the room
  • prepositions (in, at, of, on, to, etc...) should be either ignored or recognized and command adjusted.
    • eg:
      • movement, "go west" works, but "go to west", "go to the west" or "go towards west" do not work.
      • use of objects, "pick up the sword", "put the book on the table", all should be viable commands
      • "take chair" works, whereas "take the chair" does not
  • suggest skills that are unlocked when player tries to use skills they haven't unlocked yet
  • allow for expansion of possible commands (eg: the inclusion of the "view stats" command)