From Wikipedia:
Hotel Mario is a puzzle game developed by Fantasy Factory and published by Philips Interactive Media for the CD-i on December 31, 1994. The primary character of the game is Mario, who must find Princess Toadstool by going through seven Koopa hotels in the Mushroom Kingdom. Every hotel is divided into multiple stages, and the objective is to close all doors on each stage. Defeating a Koopaling on the hotel's final stage takes the player to the following building.
Controlling Mario, or his brother Luigi in two-player mode, the player has to complete all stages of the seven hotels in the game. The first six hotels contain 10 stages, and the last contains 15 stages. Progressing from one stage to the next requires the player to shut every door without exceeding a time limit. The purpose of closing the doors to progress is not explained. Elevators, which operate differently depending on the hotel, enable the player to go between the five floors of the stage. The faster a stage is cleared, the more points will be given to the player. Every stage has its own title screen via which the game can be saved. The screens are also used to enter previously played hotel stages and the map of the Mushroom Kingdom, which allows the player to access any visited hotel.
While trying to close the doors, the player must avoid certain hazards. Mario will lose a life if he touches an enemy, runs out of time, runs off the edge of the floor he is on, or if all the doors are open. Enemies in the game are mostly regular Mario series creatures, such as Goombas, Koopas, Boos, and their variations. The opponent on the last stage of each hotel is one of the Koopalings, who use different methods to attack Mario.