/castles

Primary LanguageHTML

Castles

Preview: https://samprity.github.io/castles/

You can add different heights by clicking the buttons. Clicking on Build castles shows the number of castles that can be built. Using clear you can refresh and play again.

Assumptions

  1. Heights are considered between 1 -10 and as numbers
  2. We can build at the beginning of the array