Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: My Cube Simulator

Hybrid View

  1. #1
    Member Chrisalead's Avatar
    Join Date
    Nov 2010
    Location
    Elancourt - FRANCE
    YouTube
    chrisalead5
    Posts
    171

    Default My Cube Simulator

    Hello everybody.

    I was playing with "jflySim" recently and I don't know if it's only on my machine but for any size bigger than 3x3x3, it is really slow.
    So I took the decision to write my own simulator.

    Here it is.

    Short list of features :
    - Runs under Windows XP (I don't know for Seven or other Windows versions).
    - Simulate any cube size from 2x2x2 to 50x50x50.
    - Everything is keyboard controlable, shortcuts for turns are (nearly) the same than in "jflySim" or "higames.net". With a few more.
    - 15s inspection time.
    - Full history of turns, so you have undo/redo for the whole solution.
    - Replay mode.
    - Solver for any cube size (from Ken Silverman and Ben Jos Walbeehm), pushes the solution to the history.
    - Load/Save any cube state (with history).
    - Pause solve (turns all colors to white to prevent cheating).
    - Two ways to scramble the cube : randomly or paste from clipboard.
    - Adjustable gap between facelets. Facelet outlining ( can be disabled).
    - Possibility to change view using the mouse.

    I used C++/OpenGL to make it. And I also used SFML library for conveniance (mouse + keyboard inputs, etc...).
    You will also probably need to have Microsoft redistributable c++ 2008 libraries installed. You can find them here :
    http://www.microsoft.com/download/en/details.aspx?id=29

    IMPORTANT : I have an AZERTY keyboard, so you might have some problem using keys like A/Q, M/?, etc if you are using a QWERTY one. All you have to do is to press
    the SHIFT and ALT key once together. It will toggle your keyboard between QWERTY and AZERTY, so the problem disappears.

    Here is the link to download it :
    http://dl.dropbox.com/u/28029645/Kube.zip

    The zip includes a little "readme.txt" with minimal instructions (basically press F12 in the software to learn how to use it).
    single / avg5 / avg12 / mean50 : 7"80 / 11"38 / 12"75 / 13"38
    2x2x2 : 1"70, 4x4x4 : 59"26, 5x5x5 : 1'37"98

  2. #2
    Member
    Join Date
    Mar 2006
    Location
    Uberlandia, MG - Brazil
    WCA Profile
    2007GUIM01
    YouTube
    PedroSG
    Posts
    1,669

    Default

    Is it possible that you release the source code so that we can modify the keys?
    I don't like the rotations keys, I'm used to A/; for y axis (it is like that on jfly's).

  3. #3
    Member Chrisalead's Avatar
    Join Date
    Nov 2010
    Location
    Elancourt - FRANCE
    YouTube
    chrisalead5
    Posts
    171

    Default

    They already are like in jfly's for these 2 keys. You seem to have a QWERTY keyboard. Just switch to AZERTY by pressing SHIFT + ALT simultaneously (once you are in the simulator's window). That will do it for now.
    I'm planning to add an editable shortcut file.
    single / avg5 / avg12 / mean50 : 7"80 / 11"38 / 12"75 / 13"38
    2x2x2 : 1"70, 4x4x4 : 59"26, 5x5x5 : 1'37"98

  4. #4
    Member
    Join Date
    Mar 2006
    Location
    Uberlandia, MG - Brazil
    WCA Profile
    2007GUIM01
    YouTube
    PedroSG
    Posts
    1,669

    Default

    It does nothing for me...(on the cube simulator...it changes my keyboard language, though).

  5. #5
    Member vcuber13's Avatar
    Join Date
    Oct 2009
    Location
    Near Toronto
    WCA Profile
    2009METH01
    YouTube
    simpsons36109
    Posts
    2,193

    Default

    is it changing it to azerty though?
    on my computer it only cycles dvorak and qwerty
    Official 3x3 Personal Bests: 11.72, 13.88
    Official Square-1 Personal Bests: 13.15 NR, 15.31

  6. #6
    Member Rook's Avatar
    Join Date
    Oct 2009
    Location
    Canada, A?
    Posts
    107

    Default

    Here are some problems:



    Get that error every time I open the exe. The sim still works, though.

    The Shift+Alt (did you mean Ctrl+Alt?) thing doesn't work if you don't have the Azerty layout in the language bar. I have Qwerty and Dvorak, so it makes it impossible to solve by doing that. I would strongly recommend that you make it Qwerty by default since the large majority of us use Qwerty. This problem alone stops me from wanting to try a speedsolve on this sim since I can only do y' with letter Q and y with M.

    I love the fact that you've got M slices, but I don't like the fact that they're right above the U keys. I can only moo quickly if it's M' U' or M U, and in other cases I have to reposition my middle fingers onto the M keys. If not that, I have to painstakingly go back and forth with my index fingers.

    This thing has potential.
    Joined: 10-10-09 | AO5 20.94 | AO12 22.34 (Fridrich) | PBs: 14.78 (Fridrich) 18.80 (Roux)

  7. #7
    Member Chrisalead's Avatar
    Join Date
    Nov 2010
    Location
    Elancourt - FRANCE
    YouTube
    chrisalead5
    Posts
    171

    Default

    Ok ok, I knew that my AZERTY keyboard would cause some trouble ^^. I thought that the AZERTY mode was on every PC but it seems I was wrong !
    I will add a shortcut definition file tomorrow and reupload the new version. And I will also set all shortcuts to QWERTY by default.
    Any idea for better M/M' shortcuts ? In fact I don't like them neither.

    Edit : I will also set antialiasing to 0 by default instead of 4.
    single / avg5 / avg12 / mean50 : 7"80 / 11"38 / 12"75 / 13"38
    2x2x2 : 1"70, 4x4x4 : 59"26, 5x5x5 : 1'37"98

  8. #8
    Member Chrisalead's Avatar
    Join Date
    Nov 2010
    Location
    Elancourt - FRANCE
    YouTube
    chrisalead5
    Posts
    171

    Default

    Ok. I have uploaded a new version (same link). Now the keys are set for QWERTY keyboards (let me know if there is still something wrong) and default antialiasing is set to 0.
    single / avg5 / avg12 / mean50 : 7"80 / 11"38 / 12"75 / 13"38
    2x2x2 : 1"70, 4x4x4 : 59"26, 5x5x5 : 1'37"98

  9. #9
    Member collinbxyz's Avatar
    Join Date
    Sep 2010
    Location
    Philadelphia PA
    WCA Profile
    2010BURN01
    YouTube
    Collinbxyz
    Posts
    1,207

    Default

    When I try to open the .exe, it brings up two windows (not sure if this is supposed to happen or not), and then it automatically says, "Kube.exe has stopped working"... I'll add pic in a sec.

    EDIT:


    1/5/12/50/100 ~ 2x2: 1.359/2.703/3.139/3.504 - 3x3: 6.912/8.717/9.674/9.878/10.025 - OH: 9.554/16.163/18.694

  10. #10
    Member aaronb's Avatar
    Join Date
    Apr 2011
    Location
    Maine, USA
    Posts
    423

    Default

    Quote Originally Posted by collinbxyz View Post
    When I try to open the .exe, it brings up two windows (not sure if this is supposed to happen or not), and then it automatically says, "Kube.exe has stopped working"... I'll add pic in a sec.

    EDIT:
    *picture of problem*
    Same thing happened to me, and I even downloaded C++ Redistributable 2008 thing, from the link at the top. Any suggestion, anyone?
    Getting lucky is a crime. Punishable by death.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •