Yet another Cube Timer :)

Status
Not open for further replies.
i use this timer on 1024x768

this is what happen :)

I am not quite convinced that it is the resolution alone that is causing the problem.

The issue is that the lit LED font is being variably spaced, instead of fixed spaced. The first person to report this issue tried it on the same system with a higher resolution and still got the problem.

Did you just reduce the resolution to 1024x768 and got the problem? Or is this a different system?

i have 1.1.1

i got a scramble with

D2 U2 D2 in it. :(

Hmmmm, that would not be possible given the algorithm, so I must have a bug in the code. Thanks for the heads up. I will fix it.

While this scrambler is a very elegant solution (8 lines of code)

I did it in fewer lines (see source code of this page) but they're quite crammed. I love elegance, would you show us that scrambler code of yours?

I am not competing, but I see you are a topcoder :)

I just looked at your code, it is quite similar to mine. We are both employing modulus operations. My string is comprised of all moves, while yours is just the faces. You are doing the primes and 2's as another random number, while I am just plucking the move from the string. It is very interesting to see we did it with the same spirit in mind.

If I cram my lines like yours I get 3-4 lines depending on how you count, and then we get into language idiosyncrasies (as I am not using JavaScript).

BTW, I think you can simplify your code. Since you are just getting 1 of the 6 faces at random, you don't need to do a modulus operation. By just checking that the new random number is neither the last or previous to last, you are ensuring that you will have a change in axis for any group of 3 moves. Ensuring the change in axis using the modulus is superfluous. Or am I reading it wrong?

oh noes! that will be a problem.

i have not made this my main timer yet, it's still CCT.

i think that a minimizing screen thing would be helpful... it kind of sucks to have somebody talk on msn, then i have to ALT+TAB out of the program, then go back...

Don't worry the problem will be fixed.

Regarding minimizing:

Right now you can just press ESC and it goes away. Of course you need to re-open it (but it opens fast). Technically speaking, if I add a key to minimize you still have to click on the task bar to bring the timer back. And the way it is right now, if you have an icon shortcut on your desktop, you need to do a double-click to open it after closing it with ESC, so adding the minimizing key just saves you a click. I will add the minimization key anyway, as it won't affect operation or simplicity. Should I use F12 perhaps?

HOLY CRAP. QuadPost?
 
Status
Not open for further replies.
Back
Top