Skip to content

some thoughts #2

@simonneutert

Description

@simonneutert

great video for beginners, thank you very much for sharing, yet, I have two thoughts to share:

  • i'd love to see a variation of the game in this repo, that is based on a hash, instead of an array, like:
      [
        {
         word: "cricket", 
        hint: "A game played by gentlemen"
        },
        # ... shortened for brevity
      ]
  • begin is a keyword in ruby and should not be used as a method name
  • factoring out nested if elses makes the game overall a bit cleaner and not that much harder for beginners I'd say

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions