Cube (allthetropes.org)
Cube is a Canadian science fiction/horror film series. The three movies are each based on the same premise; there is a gigantic, mechanical, cube-shaped structure (the purpose and origin of which is almost completely unknown) that is made up of lots of smaller cube-shaped rooms. Each of these rooms has 6 doors, one on each wall and one on the ceiling and one on the floor, which lead into adjacent, identical rooms, only differing by color. Some of these rooms are safe, while others are equipped with booby traps such as flamethrowers and razorwire which kill a person who enters the room (in some cases it is possible to detect a trap by throwing a boot into the room first, except in Cube 2: Hypercube where the traps are less distinct - in the form of an abstract shape and visual effects - and less predictable).- Cube (1997 film) (Wikipedia)
Cube is a 1997 Canadian science fiction horror-thriller film directed and co-written by Vincenzo Natali. A product of the Canadian Film Centre’s First Feature Project, Nicole de Boer, Nicky Guadagni, David Hewlett, Andrew Miller, Julian Richings, Wayne Robson, and Maurice Dean Wint star as individuals trapped in a bizarre and deadly labyrinth of cube-shaped rooms.