mikepound / cubes

This code calculates all the variations of 3D polycubes for any size (time permitting!)
MIT License
163 stars 43 forks source link

Lookup time #21

Open th0ma5w opened 1 year ago

th0ma5w commented 1 year ago

I am probably saying the same thing as other just I don't have the proper terms probably but to save on lookup time:

Take the binary representation of every transformation and sum them, and that becomes the object hash.

When evaluating a new object do the same and that hash should match any rotation with just one match lookup?

Probably a way to make a tree of these as well but I imagine the hashing is effectively doing that anyway.