Debug Win32 Release Win32 Debug x64 Release x64 15.0 {6B5DF051-A51A-48CB-8ACD-C6FAD726019F} Win32Proj Source 10.0 StaticLibrary true v142 Unicode StaticLibrary false v142 true Unicode StaticLibrary true v142 Unicode StaticLibrary false v142 true Unicode true true false false Use Level3 Disabled true WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) true stdcpp17 true pch.h Windows true Use Level3 Disabled true _DEBUG;_LIB;%(PreprocessorDefinitions) true stdcpp17 MultiThreadedDebug true pch.h Windows true Use Level3 MaxSpeed true true true WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true stdcpp17 true pch.h Windows true true true Use Level3 MaxSpeed true true true NDEBUG;_LIB;%(PreprocessorDefinitions) true stdcpp17 true MultiThreaded pch.h Windows true true true Create Create Create Create ound-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
namespace :wittle do
  desc "Generate new puzzles for the day"
  task :generate_puzzles => :environment do
    require "wittle_generator"

    Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal)
    Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard)
    Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert)
  end
end