# frozen_string_literal: true require_relative "codebreaker/autoloader" module Codebreaker class Statistics include FileStore def show load_file&.each&.sort_by { |game| [game[:available_attempts], game[:used_hints], game[:used_attempts]] } end end class Error < StandardError; end end