HactarCE/Hyperspeedcube

Crash on lua file

Closed this issue · 1 comments

puzzledef{
  id = 'skewb_lookalike_hypercube',
  name = "skewb lookalike hypercube",
  ndim = 4,
  meta = {
    id = 'skewb_lookalike_hypercube',
    author = "Milo Jacquet",
  },

  build = function()
    for v in cd{4, 3, 3}:expand('ooox') do
      carve(v:normalized())
      add_color(v)
    end
    for v in cd{4, 3, 3}:expand('xooo') do
      slice(v:normalized()/math.sqrt(3))
    end
  end,
}

Normalizing the color fixes it

The API has changed, so this is no longer possible