describe('3D dice geometry',()=>{for(const sides of [4,6,8,10,12,20])it(`has ${sides} faces and lands on the saved value`,()=>{expect(diceMesh(sides).faces).toHaveLength(sides);for(let value=1;value<=sides;value++){const chosen=dicePolygons(sides,value,1).find(f=>f.chosen);expect(chosen?.value).toBe(value);expect(Math.hypot(...chosen!.center)).toBeLessThan(.2)}})});