Skip to content

alidin000/Bulb-placing

Repository files navigation

Javascript-Game

You can try it here

Lighting Square game

Once upon a time, King Unnamed of Nowhereland was both smiling and crying at the same time. He was smiling because his enormous brand-new palace with many spacious rooms and corridors has just been finished. He is also crying as these rooms need to be illuminated and kept warm, but the ongoing increase of utility costs affect him as well. So now it's time to think about the placement of the palace's light bulbs. We need to place them so that everything is properly lit, but we cannot install any unnecessary bulbs.

    Game description
  • The king's palace has rooms with square shaped floors that consist of black and white tiles only.
  • Light bulbs can only be placed above white tiles.
  • The light from the light bulbs does not spread diagonally, only straight along the given row and column.
  • The black tiles have objects placed on them, which block the propagation of light.
  • Black cells can optionally contain an integer from 0 to 4. This indicates how many adjacent (bottom, top, right, left) cells contain light bulbs. If there is such a number, the puzzle must be solved accordingly!
  • Two light bulbs can NEVER illuminate each other!
  • The goal of the game is to place the light bulbs so that all the white tiles are illuminated.
  • Two light bulbs can NEVER illuminate each other!
  • Game features
    • Score saving
    • Custom maps(created map should be winnable)
    • Saved games
    Game visualization
    • Main Page
    • Alt text
    • Game board
    • Alt text
    • Saved games part
    • Alt text
    • ScoreBoard
    • Alt text
    • Custom map
    • Alt text

    Technologies used

    • HTML
    • CSS
    • JavaScript
    • Browser's local storage

    About

    Light bulb placement game

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published