Project

General

Profile

Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / json @ 27249eea

Name Size
JsonReader.java 32.8 KB
JsonWriter.java 21.5 KB

Latest revisions

# Date Author Comment
27249eea 01/28/2023 06:10 PM Leszek Koltunski

Produce new JSONs files (version 7, with new scrambling method)

9ba7f3f6 01/28/2023 02:28 AM Leszek Koltunski

Move scrambling to a new model where there are spearete scrambling 'algorithms' and 'edges' of the scrambling graph.
Now each edge can contain a whole algorithm, i.e. a sequence of moves leading from state to state, which permits construction of scrambling for more complicated bandaged objects such as the AI cube....

51262d81 01/24/2023 01:37 PM Leszek Koltunski

Fix touch-replacing colors of the stickers. Now correctly takes into account the shape of the sticker.

80fd07aa 01/09/2023 01:09 AM Leszek Koltunski

Bugfixes.

f8a992a9 01/08/2023 11:58 PM Leszek Koltunski

Bugfix for reading JSONs version 6.

8bb3e677 01/08/2023 10:14 PM Leszek Koltunski

Minor bugfixes for creating JSON files version 6 (with per-cubit lists of VertexEffects)

84a17011 01/08/2023 03:36 AM Leszek Koltunski

Major change in JSOn file format:

replace the old (corners,centers) system with a list of VertexEffects which are applied to each cubit variant.

958a6e81 01/03/2023 03:27 PM Leszek Koltunski

Very important bugfix for an issue which probably has been the reason for many mysterious behaviours in the past: the JsonReader class cannot be a singleton! Convert it into a normal 'instanced' class.
With it being a singleton there's a major issue: when we create a new TwistyObject from a JSON file (by, for example, going to PurchaseActivity) and then we come back to the old object (by, for example, going back to the main RubikActivity) - then the JsonReader inside the old object has read the new JSON file and thus many of the 'abstract' methods in the old TwistyObject (for example getShortName()) all of the sudden start returning new values!

8b3b1d85 12/20/2022 02:59 PM Leszek Koltunski

Changes to the initialization - initialize the 'bought objects'

b63235a0 12/09/2022 01:17 AM Leszek Koltunski

Make it possible to create Diamond and Icosahedron-shaped objects to be read from json.

View revisions

Also available in: Atom