You want to use as few light sources as possible to light up the whole room. When you start playing, you are creating a map. To to that, hold left mouse button and use arrow keys to draw walls. Then press enter to play your level. You can deploy the light bulb with your mouse.
I used Monogame, language: C#.
Download, unzip it, there is one .exe file, play it.