<commit_before># lib/gemwarrior/game.rb
# Main launching point for Gem Warrior

require 'colorize'
require 'matrext'

require_relative 'entities/player'
require_relative 'misc/player_levels'
require_relative 'misc/animation'
require_relative 'world'
require_relative 'evaluator'
require_relative 'repl'
require_relative 'inventory'

module Gemwarrior
  class Game
    include PlayerLevels
  
    # CONSTANTS
    ## PLAYER DEFAULTS
    PLAYER_DESC_DEFAULT       = 'Picked to do battle against a wizened madman for a shiny something or other for world-saving purposes.'
    PLAYER_INVENTORY_DEFAULT  = Inventory.new
    PLAYER_ROX_DEFAULT        = 0

    attr_accessor :world, :eval, :repl
    
    def initialize(options)
      # create new world and player
      self.world            = World.new
      
      start_stats = PlayerLevels::get_level_stats(1)
      
      world.debug_mode      = options.fetch(:debug_mode)
      world.use_wordnik     = options.fetch(:use_wordnik)

      world.player = Player.new({
        :description        => PLAYER_DESC_DEFAULT,
        :level              => start_stats[:level],
        :xp                 => start_stats[:xp_start],
        :hp_cur             => start_stats[:hp_max],
        :hp_max             => start_stats[:hp_max],
        :stam_cur           => start_stats[:stam_max],
        :stam_max           => start_stats[:stam_max],
        :atk_lo             => start_stats[:atk_lo],
        :atk_hi             => start_stats[:atk_hi],
        :defense            => start_stats[:defense],
        :dexterity          => start_stats[:dexterity],
        :inventory          => PLAYER_INVENTORY_DEFAULT,
        :rox                => PLAYER_ROX_DEFAULT,
        :cur_coords         => world.location_coords_by_name('Home'),
        
        :god_mode           => options.fetch(:god_mode),
        :beast_mode         => options.fetch(:beast_mode)
      })

      # create the console
      self.eval = Evaluator.new(world)
      self.repl = Repl.new(world, eval)

      # enter Jool!
      repl.start('look')
    end

  end
end<commit_msg>debug mode starts you with some rox now<commit_after># lib/gemwarrior/game.rb
# Main launching point for Gem Warrior

require 'colorize'
require 'matrext'

require_relative 'entities/player'
require_relative 'misc/player_levels'
require_relative 'misc/animation'
require_relative 'world'
require_relative 'evaluator'
require_relative 'repl'
require_relative 'inventory'

module Gemwarrior
  class Game
    include PlayerLevels
  
    # CONSTANTS
    ## PLAYER DEFAULTS
    PLAYER_DESC_DEFAULT       = 'Picked to do battle against a wizened madman for a shiny something or other for world-saving purposes.'
    PLAYER_INVENTORY_DEFAULT  = Inventory.new
    PLAYER_ROX_DEFAULT        = 0

    attr_accessor :world, :eval, :repl
    
    def initialize(options)
      # create new world and player
      self.world            = World.new
      
      start_stats = PlayerLevels::get_level_stats(1)
      
      world.debug_mode      = options.fetch(:debug_mode)
      world.use_wordnik     = options.fetch(:use_wordnik)

      world.player = Player.new({
        :description        => PLAYER_DESC_DEFAULT,
        :level              => start_stats[:level],
        :xp                 => start_stats[:xp_start],
        :hp_cur             => start_stats[:hp_max],
        :hp_max             => start_stats[:hp_max],
        :stam_cur           => start_stats[:stam_max],
        :stam_max           => start_stats[:stam_max],
        :atk_lo             => start_stats[:atk_lo],
        :atk_hi             => start_stats[:atk_hi],
        :defense            => start_stats[:defense],
        :dexterity          => start_stats[:dexterity],
        :inventory          => PLAYER_INVENTORY_DEFAULT,
        :rox                => world.debug_mode ? 300 : PLAYER_ROX_DEFAULT,
        :cur_coords         => world.location_coords_by_name('Home'),
        
        :god_mode           => options.fetch(:god_mode),
        :beast_mode         => options.fetch(:beast_mode)
      })

      # create the console
      self.eval = Evaluator.new(world)
      self.repl = Repl.new(world, eval)

      # enter Jool!
      repl.start('look')
    end

  end
end
{'fraction_non_alphanumeric': 0.09484584608143093, 'fraction_numerical': 0.0016474464579901153, 'mean_word_length': 2.150481838398814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '4000758', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1276, 'n_words': 256}