neoneye / ARC-Interactive

Enjoy puzzle-solving directly in your browser.
https://neoneye.github.io/arc/
MIT License
19 stars 2 forks source link

Permanent link to edit page with a specific task #4

Closed neoneye closed 10 months ago

neoneye commented 10 months ago

Problem

The edit.html assumes that the user has visited the index.html page beforehand, and that the tasks have been fetched.

However nothing happens when opening a direct link to the editor, without ever having visited the ìndex.html`.

https://neoneye.github.io/arc/edit.html?dataset=ARC&task=18419cfa

Solution

In the edit.js fetch the json.gz for the dataset, and store it in IndexedDB.

neoneye commented 10 months ago

permanent links to the editor is now working.

Try these links:

https://neoneye.github.io/arc/edit.html?dataset=ConceptARC&task=AboveBelow2

https://neoneye.github.io/arc/edit.html?dataset=Mini-ARC&task=chess_pawn_l6bkp4xqvn1t6b1566f