stannic
Member
I've written a JavaScript-based Fifteen puzzle which integrates a timer and supports different puzzle sizes. I created it for my personal use but it might come in handy to some of you:
http://albertoonsoftware.com/fifteenpuzzle/
Here is my modification of Toad's timer. I've decided to create new thread here since I did not find existing dedicated thread on the forums (only this post about it).
Note: from v7.1, link to the online version will not change anymore (unless something strange happens). I'll replace old stable version with new stable instead of creating new page.
From now, use the link below for latest stable online version:
Online version (v7.1.ie.01): link
Simple viewer of the stored PBs: link
The code to view all stored PBs:
View attachment viewstor.zip
post in this thread
Timer:
v7.1.ie.01: View attachment fifteen071ie.zip
v7.1: View attachment fifteen071.zip
v7.0: View attachment fifteen07.zip
v6.1 upd 1: View attachment fifteen061u1.zip
v6.1: View attachment fifteen061.zip
v6.0: View attachment fifteen06.zip
v5.2 upd 8: View attachment fifteen052u8.zip
v5.2 upd 7: View attachment fifteen052u7.zip
v5.2 upd 6: View attachment fifteen052u6.zip
v5.2 upd 5: View attachment fifteen052u5.zip
v5.2 upd 4: View attachment fifteen054.zip
v5.2 upd 2: View attachment fifteen052.zip
v5.2: View attachment fifteen052.zip
v5.1: View attachment fifteen051.zip
View attachment viewstor.zip
post in this thread
Timer:
v7.1.ie.01: View attachment fifteen071ie.zip
v7.1: View attachment fifteen071.zip
v7.0: View attachment fifteen07.zip
v6.1 upd 1: View attachment fifteen061u1.zip
v6.1: View attachment fifteen061.zip
v6.0: View attachment fifteen06.zip
v5.2 upd 8: View attachment fifteen052u8.zip
v5.2 upd 7: View attachment fifteen052u7.zip
v5.2 upd 6: View attachment fifteen052u6.zip
v5.2 upd 5: View attachment fifteen052u5.zip
v5.2 upd 4: View attachment fifteen054.zip
v5.2 upd 2: View attachment fifteen052.zip
v5.2: View attachment fifteen052.zip
v5.1: View attachment fifteen051.zip
v1.0
- improved scrambling function (equal probability for all configurations)
v2.0
- support for non-square puzzles (any width and height up to 16x16)
- recording move counts
- displaying the number of solves
v3.0
- switching between "piece moves" and "blank moves" modes (piece moves mode is when Down = move tile above the gap downward; blank moves mode is when Down = move tile below the gap upward)
- TPS
- color schemes
- displaying time in format h:mm:ss.msms
v4.0
- fixed back notation (Mean instead of Avr)
- Avr, Curr/Best Ao5, Curr/Best Ao12
- resizing tiles
v5.0
- relay mode
v5.1
- Table of results
v5.2
- live timer (beta)
- various coloring schemes
- control schemes (Arrows, AWDS, HCNT, JL/I/FS/K) (update 5)
- new relay modes (w--, h--) (update 6)
- new scramble types (update 7)
v6.0
- saving settings in cookies
- new relay modes (3 in a row, 10 in a row)
v7.0
- saving PBs in localStorage (no relays for now)
- three gradient color schemes
- hand-picked rainbow palette
- one custom 4-color scheme
v7.1
- "official" solves, counter
- bug-fix: storing PBs from different scramble types separately
- buttons to delete/clear PBs
- support for IE 8.0+ (update 7.1.ie.01)
To-do (although not guaranteed)
- Export/import PBs in plain-text format / BB coded table / HTML table (probably in separate tab or in separate page)
- Scramble type: single swap (actually single swap + swap 14-15)
- AoX/MoX in relay mode
- Saving PBs in relay mode
- Saving the total number of solves (because there is now Official counter)
- Columns TPS and Sigma in the AoX/MoX table
- Reduction modes (First N rows, First M cols, Reduce to MxN...)
- The ability to select the averages/means you want to display
- AoX/MoX: displaying current, best session and PBs separately
- improved scrambling function (equal probability for all configurations)
v2.0
- support for non-square puzzles (any width and height up to 16x16)
- recording move counts
- displaying the number of solves
v3.0
- switching between "piece moves" and "blank moves" modes (piece moves mode is when Down = move tile above the gap downward; blank moves mode is when Down = move tile below the gap upward)
- TPS
- color schemes
- displaying time in format h:mm:ss.msms
v4.0
- fixed back notation (Mean instead of Avr)
- Avr, Curr/Best Ao5, Curr/Best Ao12
- resizing tiles
v5.0
- relay mode
v5.1
- Table of results
v5.2
- live timer (beta)
- various coloring schemes
- control schemes (Arrows, AWDS, HCNT, JL/I/FS/K) (update 5)
- new relay modes (w--, h--) (update 6)
- new scramble types (update 7)
v6.0
- saving settings in cookies
- new relay modes (3 in a row, 10 in a row)
v7.0
- saving PBs in localStorage (no relays for now)
- three gradient color schemes
- hand-picked rainbow palette
- one custom 4-color scheme
v7.1
- "official" solves, counter
- bug-fix: storing PBs from different scramble types separately
- buttons to delete/clear PBs
- support for IE 8.0+ (update 7.1.ie.01)
To-do (although not guaranteed)
- Export/import PBs in plain-text format / BB coded table / HTML table (probably in separate tab or in separate page)
- Scramble type: single swap (actually single swap + swap 14-15)
- AoX/MoX in relay mode
- Saving PBs in relay mode
- Saving the total number of solves (because there is now Official counter)
- Columns TPS and Sigma in the AoX/MoX table
- Reduction modes (First N rows, First M cols, Reduce to MxN...)
- The ability to select the averages/means you want to display
- AoX/MoX: displaying current, best session and PBs separately
To relay puzzles from 7x7 downto 2x2, set puzzle size 7x7, switch mode from "Standard" to "Relay" and scramble puzzle by pressing Space. There are no pauses between solves. Timer starts when you do the first move on the first puzzle in relay.
You can start relay from any MxN puzzle where M, N >= 3. Puzzles in relay will be MxN, (M-1)x(N-1), (M-2)x(N-2) etc.; after solving (2xN) or (Mx2) puzzle, the following puzzles will be 2x(N -1), 2x(N - 2) etc. For example, 5x4-4x3-3x2-2x2 relay or 7x4-6x3-5x2-4x2-3x2-2x2 relay.
Since v.5.2 upd 6, there are two more relay modes: Relay (w--) and Relay (h--). In the mode (w--), the height of the puzzle does not change (only width), so you can, for instance, relay puzzles from 10x4 downto 2x4. In the mode (h--), changes only the height, so you can relay puzzles from 5x10 downto 5x2.
You can start relay from any MxN puzzle where M, N >= 3. Puzzles in relay will be MxN, (M-1)x(N-1), (M-2)x(N-2) etc.; after solving (2xN) or (Mx2) puzzle, the following puzzles will be 2x(N -1), 2x(N - 2) etc. For example, 5x4-4x3-3x2-2x2 relay or 7x4-6x3-5x2-4x2-3x2-2x2 relay.
Since v.5.2 upd 6, there are two more relay modes: Relay (w--) and Relay (h--). In the mode (w--), the height of the puzzle does not change (only width), so you can, for instance, relay puzzles from 10x4 downto 2x4. In the mode (h--), changes only the height, so you can relay puzzles from 5x10 downto 5x2.
- After setting width and height of the puzzle, left-mouse-click somewhere in the memo "Times" or "Moves". This prevents unintentional changing width and height of the puzzle when you press keys Up/Down.
Also, if you have your own modification and want to share it then feel free to post it. I'll add links here.
Mr.Toad's (original): online version, source code (old link)
Ickathu's version: online version, post on speedsolving.com
vcuber13's version: single puzzles, 7x7 - 2x2 puzzle relay (source code, video)
Ickathu's version: online version, post on speedsolving.com
vcuber13's version: single puzzles, 7x7 - 2x2 puzzle relay (source code, video)
Last edited: