Skip to content

Commit

Permalink
v0.90
Browse files Browse the repository at this point in the history
### Version: Exolve v0.90 Septeber 8 2020

- Add functionality to limit checking/revealing to just the current cell
  rather than the whole current light. This is done when there is a long
  click (500+ms) on "Check this" or "Reveal this." Caveat; this does
  not work on phones and tablets (I only tested on Android) as they deal
  with long-presses in some special way that I'll try to work with, at some
  point.
- Change the default background color of the current clue strip (shown above
  the grid) to 'white' instead of 'mistyrose' (the active clues in the clues
  lists still get the 'mistyrose'). This results in a more relaxed appearance
  (I should have realized this and made this change earlier!). Of course
  this can be customized too (`exolve-option: color-currclue:mistyrose` will
  restore the current colour scheme). When the current clue is an orphan, its
  background continues to be shown as 'linen' (which can be changed with
  `exolve-option: color-orphan:white`, for example).
- When there are multiple Exolve puzzles, use a running variable to set
  the index of a new one, rather than using the # of existing puzzles,
  as we might also need to destroy puzzles from a web page (for example,
  to show a preview).
- Allow under-construction grids to specify '?' as the letter in a cell.
  This is treated just like '0', except that a '0' signifies that the
  grid has cells where the solution has not been provided, but a '?'
  does not.
- Bug-fix: when the enum specified hyphenation in a child clue, and that
  child clue did not exist in the clues lists, we were hitting an
  uninitialized property.
- Separately track the solution to display for a clue from the anno to
  display. Wrao displayed anno in its own span. Wrap the text of the
  clue in its own span.
- Remove weird extra space between prev/next buttons in te current clue strip.
- When typing in the grid, let space-bar advance to the next cell.
- When typing in the grid, if an invalid character (such as punctuation) is
  typed, we were deleting the current entry. Don't do that (delete only
  with space or backspace or a new valid entry).
  • Loading branch information
viresh-ratnakar authored Sep 9, 2020
1 parent 12d47b8 commit c32c6d4
Show file tree
Hide file tree
Showing 36 changed files with 462 additions and 217 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

### Version: Exolve v0.90 Septeber 8 2020

- Add functionality to limit checking/revealing to just the current cell
rather than the whole current light. This is done when there is a long
click (500+ms) on "Check this" or "Reveal this." Caveat; this does
not work on phones and tablets (I only tested on Android) as they deal
with long-presses in some special way that I'll try to work with, at some
point.
- Change the default background color of the current clue strip (shown above
the grid) to 'white' instead of 'mistyrose' (the active clues in the clues
lists still get the 'mistyrose'). This results in a more relaxed appearance
(I should have realized this and made this change earlier!). Of course
this can be customized too (`exolve-option: color-currclue:mistyrose` will
restore the current colour scheme). When the current clue is an orphan, its
background continues to be shown as 'linen' (which can be changed with
`exolve-option: color-orphan:white`, for example).
- When there are multiple Exolve puzzles, use a running variable to set
the index of a new one, rather than using the # of existing puzzles,
as we might also need to destroy puzzles from a web page (for example,
to show a preview).
- Allow under-construction grids to specify '?' as the letter in a cell.
This is treated just like '0', except that a '0' signifies that the
grid has cells where the solution has not been provided, but a '?'
does not.
- Bug-fix: when the enum specified hyphenation in a child clue, and that
child clue did not exist in the clues lists, we were hitting an
uninitialized property.
- Separately track the solution to display for a clue from the anno to
display. Wrao displayed anno in its own span. Wrap the text of the
clue in its own span.
- Remove weird extra space between prev/next buttons in te current clue strip.
- When typing in the grid, let space-bar advance to the next cell.
- When typing in the grid, if an invalid character (such as punctuation) is
typed, we were deleting the current entry. Don't do that (delete only
with space or backspace or a new valid entry).

### Version: Exolve v0.89 August 31 2020

- Add "conf" parameter defaulting to true, to revealAll(), checkAll(),
Expand Down
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## An Easily Configurable Interactive Crossword Solver

### Version: Exolve v0.89 August 31 2020
### Version: Exolve v0.90 September 8 2020

Exolve can help you create online interactively solvable crosswords (simple
ones with blocks and/or bars as well as those that are jumbles or are
Expand Down Expand Up @@ -87,6 +87,12 @@ fully filled lights, if there are any. If there are none (i.e., if all remaining
letters in the current light also cross other fully filled lights), only then
will these remaining letters get cleared.

A long click on either of "Check this" or "Reveal this" will toggle the text
"this" to "cell," and the checking/revealing will then only happen on the
current cell (as opposed to the whole light), for that particular activation
of the button. Caveat: this does not seem to work on phones and tablets (only
tested on Android devices though).

Exolve supports diagramless puzzles, where the blocked squares are not
identified and the solver has to figure out their locations. In fact, exolve
supports *partially* diagramless puzzless, where only some squares or some
Expand Down Expand Up @@ -281,6 +287,10 @@ indicate blocked squares). In this grid, 1 Across = ACE, 1 Down = ARE,
3 Down = ERR, and 3 Across = EAR. When solution letters are included like this,
the control buttons for checking/revealing answers get shown.

In a grid with solutions provided, setters may use the letter '?' as a
placeholder in any light square for which they have not yet decided what
letter to place.

Grid without solutions provided:
```
exolve-grid:
Expand Down Expand Up @@ -958,9 +968,10 @@ be overriding), and descriptions.
|----------------------------|---------------|-----------------------------------|
| `colour-background` | black | The background: blocked squares and bars.|
| `colour-cell` | white | Light squares. |
| `colour-active` | mistyrose | Squares for the light(s) currently active. The current clue(s) also get(s) this as background colour.|
| `colour-active` | mistyrose | Squares for the light(s) currently active. The current clue(s) in the clues list also get(s) this as background colour.|
| `colour-currclue` | white | Background for the current clue above the grid.|
| `colour-orphan` | linen | The background colour of the current clue(s) without known location(s) in the grid.|
| `colour-input` | #ffb6b4 | The light square where the solver is typing.|
| `colour-orphan` | linen | The colour of the current clue(s) without known location(s) in the grid.|
| `colour-light-label` | black | The number (or nun-numeric label) of a clue, in its first square. |
| `colour-light-label-input` | black | Same as above, in the square where the solver is typing.|
| `colour-light-text` | black | The typed solution letters in lights.|
Expand Down Expand Up @@ -1059,11 +1070,13 @@ Here are all the names of pieces of text that you can relabel:
| `clear-all` | Clear all! |
| `clear-all.hover` | Clear everything! A second click clears all placeholder entries in clues without known squares|
| `check` | Check this |
| `check.hover` | Erase mistakes in highlighted squares|
| `checkcell` | Check cell |
| `check.hover` | Erase mistakes in highlighted squares. Long-click to check the just current cell|
| `check-all` | Check all! |
| `check-all.hover` | Erase all mistakes. Reveal any available annos if no mistakes|
| `reveal` | Reveal this |
| `reveal.hover` | Reveal highlighted clue/squares |
| `revealcell` | Reveal cell |
| `reveal.hover` | Reveal highlighted clue/squares. Long-click to reveal the just current cell|
| `show-ninas` | Show ninas |
| `show-ninas.hover` | Show ninas hidden in the grid/clues |
| `hide-ninas` | Hide ninas |
Expand Down
6 changes: 3 additions & 3 deletions exolve-m-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
See the full Exolve license notice in exolve-m.js.
Version: Exolve v0.89 August 31 2020
Version: Exolve v0.90 September 8 2020
-->

<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v0.89"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v0.89"></script>
<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v0.90"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v0.90"></script>

<title>Exolve</title>

Expand Down
4 changes: 2 additions & 2 deletions exolve-m.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Copyright (c) 2019 Viresh Ratnakar
See the full license notice in exolve-m.js.
Version: Exolve v0.89 August 31 2020
Version: Exolve v0.90 September 8 2020
*/

@media (max-width: 500px) {
Expand Down Expand Up @@ -139,7 +139,7 @@ Version: Exolve v0.89 August 31 2020
word-wrap: break-word;
font-weight: bold;
margin: 0;
padding: 2px 0;
padding: 2px;
}
.xlv-curr-orphan,
.xlv-curr-clue-label {
Expand Down
6 changes: 3 additions & 3 deletions exolve-m.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
See the full Exolve license notice in exolve-m.js.
Version: Exolve v0.89 August 31 2020
Version: Exolve v0.90 September 8 2020
-->
<link rel="stylesheet" type="text/css" href="exolve-m.css?v0.89"/>
<script src="exolve-m.js?v0.89"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v0.90"/>
<script src="exolve-m.js?v0.90"></script>

<title>Exolve (replace with puzzle title)</title>

Expand Down
Loading

0 comments on commit c32c6d4

Please sign in to comment.