Project

General

Profile

Download (14 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / objects / TwistyCube.java @ abf36986

# Date Author Comment
abf36986 09/13/2021 03:15 AM Leszek Koltunski

Add Mirror Cube 2x2 and 3x3.

91792184 09/10/2021 01:29 AM Leszek Koltunski

Make object scrambling abstract (well, almost - with exception of Square-1 - this theoretically could also be done the generic way, but this would require almost 20000 'ScrambleStates')

d90c55cc 09/07/2021 01:00 PM Leszek Koltunski

Make the 'Play' popup always fit within the window height.

d464f54f 09/06/2021 10:56 PM Leszek Koltunski

Remove statics from the Dino classes.

7ff38997 09/06/2021 10:10 PM Leszek Koltunski

Remove statics from the Cube classes.

e1dc3366 08/31/2021 05:46 PM Leszek Koltunski

Introduce pseudorandom balancing into scrambling to all the other already converted objects, i.e. everytihng except for Pyraminxes, Squares, Minxes and the Redi.

6cf89a3e 08/31/2021 03:38 PM Leszek Koltunski

Introduce pseudorandom balancing into scrambling in case of the two Dinos (from now on, the more times a particular (ax,layer) combination has been chosen already in the scrambling sequence, the less likely it is to be chosen next).
Fix Dino6 - isSolved(). Sadly, it cannot be the geeneric function - it needs to be another special case.

caccea6e 08/31/2021 01:12 AM Leszek Koltunski

Convert the Cubes of all sizes to the new, unified scrambling method.

169219a7 08/26/2021 10:30 PM Leszek Koltunski

Remove the last 'isSolved()' (from Dino4) and put it to the parent class as a special case.

a480ee80 08/26/2021 01:13 AM Leszek Koltunski

Standarize the 'isSolved()' method: now all objects, except one (Dino4) have a standard isSolved().
This incidentally also fixes detection of the solved state in case of Diamond4, i.e. a Master FTO.

3e605536 08/23/2021 03:20 PM Leszek Koltunski

Finally remove cubit creation from the implementation classes and move it to the TwistyObject.

f10a88a8 08/20/2021 12:39 AM Leszek Koltunski

Move 1) bandaged 3x3 2) normals cubes 3) octahedrons 4) both dinos to the new cubit creation scheme.

ad7907b0 08/19/2021 11:28 PM Leszek Koltunski

Important step towards making the implementation of an individual puzzle code-free (i.e. data-only): move the 'MeshBase[] mMeshes' variable from the individual classes to the parent TwistyObject.

47d98cd5 08/17/2021 05:30 PM Leszek Koltunski

Convert the Ivy corner cubit to the new, 'universal' cubit creation method.

This forces deep changes to 'createRoundSolid' and the underlying 'MeshPolygon' class to make them support arbitrary Polygon 'centers of face convexity'.

Reason: the faces of this cubit are concave and such default 'center of face convexity' (which by default used to be (0,0)) turned to lie outside the face - which produces strange visual artifacts.

ecf3f149 08/08/2021 04:46 PM Leszek Koltunski

Move the TwistyObject.retCubePosition() to the solver.

9c06394a 08/08/2021 04:21 PM Leszek Koltunski

Standarize drawing stickers of a twisty puzzle. From now on, there's no 'sticker drawing' code in the individual classes, only some constants.

29bc084f 08/06/2021 01:48 PM Leszek Koltunski

Convert the last 'special' case, the Rex edge sticker, to the generic sticker mechanism.

9ce78850 08/06/2021 12:38 AM Leszek Koltunski

Generalize FactorySticker - make it possible to draw stickers whose sides are curved.
Convert the Ivy to use this new functionality.

8e6dc249 06/17/2021 01:51 PM Leszek Koltunski

Correct rotations of the Cube - eliminate one cse when four consecutive rotations collapse into one or a NOP.

9f171eba 06/13/2021 10:35 PM Leszek Koltunski

Preparation for 'smart scrambling' : introduce the total number of scrambles to the 'randomizeNewScramble' function.

e6734aa9 06/04/2021 01:25 AM Leszek Koltunski

Make it possible for an object to have different 'cuts' along each of its axis.

925ed78f 06/04/2021 12:26 AM Leszek Koltunski

Make it possible for an object to have different 'basicAngles' along each of its axis.

582617c1 06/03/2021 10:46 PM Leszek Koltunski

Hide more stuff in the TwistyObject class.

0203be88 06/03/2021 10:06 PM Leszek Koltunski

Remove the need for RowChances.

67b2d57b 04/20/2021 12:25 PM Leszek Koltunski

Create new meshes.

7d8cc029 04/18/2021 10:20 PM Leszek Koltunski

Simplify.

b3c9061a 04/14/2021 11:59 PM Leszek Koltunski

New Cubit Engine: add adjustable centers.

b1f2ccf5 04/14/2021 04:00 PM Leszek Koltunski

Convert the first object, the Cube, to the new Cubit-creating engine.

749ef882 04/14/2021 10:01 AM Leszek Koltunski

Move Factories to the 'helpers' package.

2ef489e2 03/29/2021 01:32 PM Leszek Koltunski

Progress making the Diamond class support any size.

5043d5d0 03/21/2021 12:44 AM Leszek Koltunski

Refactor the automatic scrambling. From now on, it is not needed to care about single and double turns when randomizing a new turn.

bbc6471c 03/20/2021 12:36 AM Leszek Koltunski

Change the automatic scramble API in the TwistyObject - in preparation for automatic scrambles in the Bandaged Objects.

e6cf7283 03/18/2021 09:48 AM Leszek Koltunski

Change the Cubit center from a Static3D to a float[].
The point: now we can have more than one center, and bandaged objects need more than one, because in this way they are going to fill up their RotationRow bitmaps.

f0450fcc 03/17/2021 04:37 PM Leszek Koltunski

Change Cubit.mRotationRow[] from an index pointing at a single rotating layer to a bitmap potentially pointing at several layers.
(in preparation for bandaged objects)

722b2512 03/17/2021 03:20 PM Leszek Koltunski

Simplifications.

221a4090 03/17/2021 02:31 PM Leszek Koltunski

Simplification with objects.

db875721 03/07/2021 12:17 AM Leszek Koltunski

Add Gigaminx dmesh.

a64e07d0 01/19/2021 04:17 PM Leszek Koltunski

Beginnings of Megaminx & Gigaminx

323b217c 01/10/2021 11:52 PM Leszek Koltunski

Make the color scheme more standard.

bb490017 11/26/2020 08:23 PM Leszek Koltunski

Fix a long standing bug in the way we detect if a Cube or Pyraminx is solved. The reason for all those 'impossible' records being submitted.

6fd4a72c 10/23/2020 11:51 PM Leszek Koltunski

Preparation for the Object Info popup: add the name, inventor, complexity info to each object.

064ccc31 10/18/2020 12:02 AM Leszek Koltunski

Missing meshes; fix the Solver.

ae755eda 10/16/2020 10:26 PM Leszek Koltunski

Make the texture multi-row: avoid the maximum texture size.

b89898c5 10/16/2020 12:11 PM Leszek Koltunski

Progress with Skewb familty; separate StickerFactory class.

d99f3a48 10/16/2020 08:32 AM Leszek Koltunski

Spearate the concept of number of layers of an object and its size.
In case of the Skewb family, this is no longer the same (Master Skewb has 3 layers but it's twice bigger than the 2-layered Skewb)

a97e02b7 10/15/2020 03:11 PM Leszek Koltunski

Objects must explicitly provide a list of offsets specifying where the cut planes are (rather than just a BASIC_STEP - the width of the layer - which is insufficient in case of objects which have layers of vastly different width, like the Master Skewb)

eb389a97 10/15/2020 10:49 AM Leszek Koltunski

Move computation of the rotation rows to the Object from Cubits.

3f3ff476 10/14/2020 03:21 PM Leszek Koltunski

Beginnings of support for any-sized Skewb.

2fcfce81 10/13/2020 10:40 AM Leszek Koltunski

CubitFactory: unify creating MeshPolygon bands.

db7eb1ad 09/30/2020 08:25 PM Leszek Koltunski

Minor.

76c2bd07 09/30/2020 06:08 PM Leszek Koltunski

Simplify drawing textures.

f18e8fae 09/29/2020 08:33 PM Leszek Koltunski

Simplify drawing textures.

ac940e24 09/28/2020 12:59 PM Leszek Koltunski

Add a CubitFactory and convert all objects to use it. Biggest change is thr Pyramiinx which now uses a lattice of Octahedrons and Tetrahedrons, just like the Diamond.

ee39837d 09/26/2020 11:30 PM Leszek Koltunski

Progress with the Diamond. Everything working except for the isSolved(): turns out the center cubits can end up rotated along the face by multitudes of 120 degrees.

cc99cf91 09/26/2020 08:44 PM Leszek Koltunski

Progress with the Diamond. Everything working, expect one thing: half of the faces are upside down, and computing offset doesn't work on those faces properly.

9c2f0c91 09/25/2020 08:35 AM Leszek Koltunski

Rename some classes.