mikavilpas / squanmate Goto Github PK
View Code? Open in Web Editor NEWSquare-1 trainer, analysis and general learning tool
Square-1 trainer, analysis and general learning tool
I got a 8/star scramble ending with … / (1,4)
which is not a legal position and you cannot get in an official scramble. I tracked it down in the code but have never worked with Closure (otherwise I would have tried to fix it myself) and I believe the problem is in default_scrambler.cljs#L24 that is used by new-default-shape-scrambler
without checking after if the state is sliceable.
Jaap's solver supports appending a /
for an unsolved middle layer, or -
for a solved one.
Pressing enter should have the same effect as pressing Import
in the scramble inspector.
Bottom layer needs a 0,6 adjustment for each alg
Currently they start at the default orientation each time.
It is too dark.
The image can already be shown with the correct colors, making the parity counting correct is the next logical step. It’s still helpful but it would be much more helpful with the correct colors.
Especially bad is that orange is front for the Squanmate counting (I’ll create a seperate issue for this) #56.
Or the cube color scheme would be weird.
Make them into modals instead?
Currently there is no title, and it looks ugly.
I get this in the console when I try to inspect a scramble either from the cubeshape trainer with Inspect
or by entering my own scramble.
squanmate.js:3924 Error rendering component (in nu > page > pK > pK > nK > kK > iK > EJ)
(anonymous) @ squanmate.js:3924
squanmate.js:3453 Uncaught Error: No protocol method IDeref.-deref defined for type string: (4,5)/
at x (squanmate.js:3440)
at B (squanmate.js:3453)
at Object.EJ [as reagentRender] (squanmate.js:4445)
at squanmate.js:3922
at rt (squanmate.js:3923)
at squanmate.js:3924
at Ks (squanmate.js:3900)
at Ls (squanmate.js:3901)
at it (squanmate.js:3921)
at Object.render (squanmate.js:3924)
2squanmate.js:4013 ERROR: Cannot create sketch. :host is not specified.
Especially noticeable on slower machines.
Very confusing, users can think the scramble has already been calculated, only to see it update to the actually new scramble soon after.
Currently the :pseudo-names true
makes the production code maybe twice as big as it needs to be.
A full refresh + emptying browser's cache (or opening in private mode) will typically fix this. But it's very confusing for users.
It's only a cosmetic problem, obviously. But it should be fixed nonetheless.
As noted in #49 there is no shortcut for starting the inspection timer. i
would be cool, your suggestion :)
They could be shown horizontally when there is enough space, but in many cases they are not.
Example
(1,6)/ (2,5)/ (1,-5)/ (3,0)/ (-3,0)/ (-1,-4)/ (3,-3)/ (3,-2)/ (0,-3)/ (4,-1)/ (0,-4)/ (-4,-5)/ (3,3)
There is a great framework for using page-wide keyboard shortcuts in place, but only one page uses it so far (the parity game).
Currently the UI is slightly geared towards a mobile device. Laptop / desktop users might benefit a lot from easy to use keyboard bindings.
Can be done for algs that lead into cubeshape (square square):
If the count is odd, applying that alg at that position will always swap the parity count (swap the parity). Otherwise it will preserve the parity.
This is really simple, and can make designing algorithms and count positions a lot easier!
Here's some reference:
https://stackoverflow.com/questions/9943771/adding-a-favicon-to-a-static-html-page
Currently it’s e.g. "squanmate-Wed Mar 21 2018 17_19_19 GMT+0100 (W. Europe Standard Time).png". When I now generate a new image after midnight it will start with "squanmate-Thu" and will be sorted before the image that was generated first because I sort alphabetically. Something like"2018-03-21" would be much better.
I inserted way too many wrong images because of this into my alg sheet :D I now regularely delete all these images in my download folder as I don’t want to change my default download folder in Chrome just for this and also I don’t want to change how this folder is sorted. So changing the format would be the most pleasing and easiest solution for me.
For example in the algorithm shape visualizer https://rawgit.com/sp3ctum/squanmate/master/resources/public/#/shape-visualizer/square/left-pawn/(-5%2C-4)/(-1%2C0)%2F1%2C0%2F0%2C-2%2C%2F-1%2C-2%2F
Screenshot for later when this is fixed
Notice the extra comma in 0,-2,/
. I accidentally wrote that and could not figure out for a long time why the images were not generated for a part of the algorithm :D I would suggest, that Squanmate should check for multiple commas between two slashes and if it’s illegal, just throw an error as an unsliceable position does. I guess Squanmate does already do something like this because the visualization just stops because of an error I guess.
This is not only in the alg shape visualizer but also the scramble inspector. If I enter 1,0/-1,0,/-3,0/
I get just
Not only commas are a problem, but every other illegal character. If you already check if something in the algorithm is legal and get no as an answer, just pass the error to the user.
I’m not sure if it is necessary to create an image for, lets say 8/8 or star/star that is not possible with a Square-1. Should be easy to implement, just count the number of edges and corners in the first selected dropdown and then filter in the second.
But might be a UI nightmare :D Maybe you could disable the second dropdown until the first is filled and also add a switch button to the right to switch top with bottom and vice versa.
^ this shows "even parity"
I think a PBL trainer would be pretty cool, and I think there might be a good way to do it.
https://www.youtube.com/watch?v=5etIKH9fkqg is a PBL generator. It solves every PBL case (I think) with just two aux algs, both of them being 5 or less slices. For a trainer, you can give a scramble which is just two aux algs. You can do a random aux alg, random U and D turns and then another aux alg and that should theoretically cover every PBL (no parity of course) in scrambles just 10 slices or less. If you download the PBL finder, it comes with a notepad (auxAlgs_table) with every aux alg on it, which can hopefully be applied to squanmate. What do you think of this idea?
When you enter the app with firefox, the images are not visible.
If you go to the page "All shapes" and then go back to the main page, the images are visible, and they will continue to be visible too.
Is it worth it?
The current UI is pretty klunky. It's super annoying to use on mobile. Even on desktop it's annoying.
Add hoykeys for the buttons odd/even. I would go with left and right arrow keys. It is annoying to always have to click and would be much faster with hotkeys.
(this little symbol is from a Chrome extension btw)
After that, I press enter or leftlick and the focus should automatically switch to the field to enter the shape for the bottom layer.
I can’t think of a situation where this would not be user friendly but maybe there is. If that’s the case, please tell me, maybe I can come up with another solution.
See https://www.speedsolving.com/forum/threads/scrambler-algorithm-discussion.66097/#post-1252127 and the thread for discussion.
Allow select color on each side with RGB
There's nothing preventing offline use after an initial load of the application. I haven't really tried it yet, so it might need work.
Use case: initial load and then the user's Internet connection breaks.
I'm interested in seeing how many people find this a useful addition to their hobby. There's almost no interaction with the users at the moment.
It might be a bit ambiguous how the parity count is performed - it might be better to be explicit about this.
I have already made an explanation at my alg sheets at https://docs.google.com/spreadsheets/d/1r0LN41RGKI4oAvD9rCmmc-A5UBpNPvsEOb7eWaEtIFo/edit#gid=465744314
perhaps a link to that could suffice?
Should fix it and answer questions like:
Squanmate always puts a space after a /
in Sq1 notation. This has been bugging me a lot since I started using Squanmate but I was always too lazy to open an issue.
E.g. when importing a scramble I enter 1,0/-1,0/
and after the import Squanmate displays
So it is transformed to (1,0)/ (-1,0)/
. Happens also in the algorithm shape visualizer and everywhere else where algs are shown. Either also make a space before the /
or neither before or after (I think I prefer the one without spaces. I tested both versions by changing the HTML with the DevTools and it is still readable without the spaces and more compact=better).
Btw: I like the new asterisk that shows when we leave the cubeshape :) My hand/brain coordination already tells me this when reading the last numbers before we leave cubeshape because I’ve done thousands of scrambles but I still like it :)
Edit: ok just saw the highlighting. I don’t like that at all <.< Just because text selection can be done by the user and is used for something else already (a user action, not normally something an application does).
Changes aren't reflected any longer, like they used to be. The visualization just gets stuck.
The whole red area should also be clickable, not only the text. Expanding the box is tedious, especially if you have to do it a lot.
An option to always have the parity box open for example would also be nice. An option have all boxes open always would be sufficient, at least for web. I guess for mobile it would take too much space and require scrolling.
Go to
https://rawgit.com/sp3ctum/squanmate/master/resources/public/#/shape-visualizer
Click help -> demo
Try to navigate to "all shapes" page for example
-> nothing happens
A button to select all parity or all non-parity EPs for the algorithm trainer additionally to Select all
Select none
would be nice.
It's a lot of work to adjust settings on mobile. If the page needs to be reloaded for some reason, all settings are lost.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.