<commit_before>module Basher
  module UI
    class CurrentWordView < BaseView
      attr_accessor :game

      def self.lines
        6
      end

      def setup
        clear
        puts game.word.remaining, h: :center, v: :center
      end
    end
  end
end
<commit_msg>Current word is ascii as well<commit_after>module Basher
  module UI
    class CurrentWordView < BaseView
      attr_accessor :game

      def self.lines
        9
      end

      # TODO: Figure out how to make the text center line not move
      # as fewer letters remain in the word.
      def setup
        clear
        text = game.word.remaining.ascii(font: 'roman')
        # Height ranges from 5 to 9
        height = text.lines.size
        offset = (9 - height) / 2
        move_cursor line: offset

        text.lines.each_with_index do |line, index|
          puts line, h: :center
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.05616740088105727, 'fraction_numerical': 0.006607929515418502, 'mean_word_length': 1.762917933130699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4420960', 'n_tokens_mistral': 275, 'n_tokens_neox': 265, 'n_words': 97}