brew install --cask --no-quarantine vcmi/vcmi/vcmiIf the app doesn't open, right-click the app bundle - select Open menu item - press Open button. On macOS 15 Sequoia and later there will be no Open button, instead you'll see the following dialog:
To fix it, go to System Settings - Privacy & Security tab - scroll down and press the Open Anyway button (marked with an arrow on the image below). After that confirm your action and enter your administrator password.
If you bought HoMM3 on GOG, you can download the files directly from the browser and install them in the launcher. Select the .bin file first, then the .exe file. This may take a few seconds. Please be patient.