Sha256: a29eb2d414a934f0e4dbeb3b949509b963c16738a80d2ed7cc77b390b0196be4

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

module Wordle
  class Legend
    def self.print
      new.print
    end

    def print
      puts green_example
      puts yellow_example
      puts gray_example
      puts "\nRestart and add -i flag to target a specific word by hash, for example:"
      puts "$ wordle -i ed541a\n\n"
    end

    private

    def green_example
      "#{"w".green}eary - The letter w is in the word and in the correct spot."
    end

    def yellow_example
      "p#{"i".yellow}lls - The letter i is in the word but in the wrong spot."
    end

    def gray_example
      "vag#{"u".gray}e - The letter u is not in the word in any spot."
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wordle-0.6.0 lib/wordle/legend.rb
wordle-0.5.0 lib/wordle/legend.rb