diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-29 11:32:06 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-29 11:32:06 -0400 |
commit | 10599ab2e789ffb93a19f6aa3c100f533c460315 (patch) | |
tree | f49edb1c44fe698e023a73ee82c1584b328cb5de /lib | |
parent | 141f8b1a7e42928e94cccd0c8f89fdd56f8e2efe (diff) | |
download | wittle-10599ab2e789ffb93a19f6aa3c100f533c460315.tar.gz wittle-10599ab2e789ffb93a19f6aa3c100f533c460315.tar.bz2 wittle-10599ab2e789ffb93a19f6aa3c100f533c460315.zip |
generate, show, solve puzzles
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/wittle_tasks.rake | 11 | ||||
-rw-r--r-- | lib/wittle/engine.rb | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/tasks/wittle_tasks.rake b/lib/tasks/wittle_tasks.rake index 854e5c9..debf249 100644 --- a/lib/tasks/wittle_tasks.rake +++ b/lib/tasks/wittle_tasks.rake | |||
@@ -1,4 +1,7 @@ | |||
1 | # desc "Explaining what the task does" | 1 | namespace :wittle do |
2 | # task :wittle do | 2 | desc "Generate new puzzles for the day" |
3 | # # Task goes here | 3 | task :generate_puzzles => :environment do |
4 | # end | 4 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) |
5 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) | ||
6 | end | ||
7 | end | ||
diff --git a/lib/wittle/engine.rb b/lib/wittle/engine.rb index 6b4feca..d42ea1a 100644 --- a/lib/wittle/engine.rb +++ b/lib/wittle/engine.rb | |||
@@ -1,5 +1,7 @@ | |||
1 | require "enumerize" | 1 | require "enumerize" |
2 | require "haml" | 2 | require "haml" |
3 | require "jquery-rails" | ||
4 | require "sassc-rails" | ||
3 | require "wittle_generator/wittle_generator" | 5 | require "wittle_generator/wittle_generator" |
4 | 6 | ||
5 | module Wittle | 7 | module Wittle |