diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-28 16:38:07 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-28 16:38:07 -0400 |
commit | cfc41eb3ccc99b92220115b0710fb821525e1075 (patch) | |
tree | 6f7fa042a43647ea196bb2a9a86b3528e7eb740e /app | |
parent | b496a29a7de381765f3c45ced9fa18f026b2e314 (diff) | |
download | wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.tar.gz wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.tar.bz2 wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.zip |
generating a lot of puzzles
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/wittle/puzzles_controller.rb | 1 | ||||
-rw-r--r-- | app/views/wittle/puzzles/index.html.haml | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/wittle/puzzles_controller.rb b/app/controllers/wittle/puzzles_controller.rb index e23b435..09a2524 100644 --- a/app/controllers/wittle/puzzles_controller.rb +++ b/app/controllers/wittle/puzzles_controller.rb | |||
@@ -1,6 +1,7 @@ | |||
1 | module Wittle | 1 | module Wittle |
2 | class PuzzlesController < ApplicationController | 2 | class PuzzlesController < ApplicationController |
3 | def index | 3 | def index |
4 | @puzzle = WittleGenerator.new.generate_medium | ||
4 | end | 5 | end |
5 | end | 6 | end |
6 | end | 7 | end |
diff --git a/app/views/wittle/puzzles/index.html.haml b/app/views/wittle/puzzles/index.html.haml index dfeac3c..9e12e8b 100644 --- a/app/views/wittle/puzzles/index.html.haml +++ b/app/views/wittle/puzzles/index.html.haml | |||
@@ -6,7 +6,8 @@ | |||
6 | %svg#puzzle{ style: "pointer-events: auto"} | 6 | %svg#puzzle{ style: "pointer-events: auto"} |
7 | :javascript | 7 | :javascript |
8 | window.onload = function() { | 8 | window.onload = function() { |
9 | var puzzle = window.deserializePuzzle("_AAAAAA8PCQAAAEdlbmVyYXRlZAABAAAACAEAAAAAAQAAAAABAAAAAAEAAA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ABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAL/////AAEAAAAAAv////8AAQAAAAAIAAEAAAAACAABAAAAAAgAAQAAAAACAAAA/wABAAAAAAgAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAQAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAABAQAAAAABAAEAAAEAAAAAAQAAAAABAAAAAAL/////AAEAAAAAAgAAAP8AAQAAAAAIAAEAAAAAAv////8AAQAAAAACAAAA/wABAAAAAAIAAAD/AAEAAAAACAABAAEAAAEAAAAAAQABAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAgAAAP8AAQAAAAAIAAEAAAAAAv////8AAQAAAAAIAAEAAAAAAv////8AAQAAAAAIAAEAAAAACAABAAAAAAEAAAAIAQAAAAABAAAAAAEAAAAAAQABAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAQAAAQAAAAABAAAAEAAAAAAN") |
10 | var puzzle = window.deserializePuzzle("#{@puzzle}") | ||
10 | draw(puzzle) | 11 | draw(puzzle) |
11 | } | 12 | } |
12 | 13 | ||