Skip to content

raulvillares/3sacrowd

Repository files navigation

Codacy Badge

3sacrowd title logo

How to Play

Directions: The objective of 3sacrowd is to place an alien tile in every empty square in order to fill the entire board. But be careful! You must avoid having three adjacent tiles of the same color in any direction-- horizontally, vertically, or diagonally. Aliens need their space!

When all the empty tiles have been occupied, you win!

Some tiles will be fixed and you will not be allowed to place an alien at that location. However, you may use these to your advantage. Because sometimes creativity needs constraints. ;-)

Play a demo here!

Sample board

The game is entirely developed with Vanilla JS. RequireJs is used for modularization. The purpose of this project is to learn so anybody is welcome. Are you looking for an easy javascript project to make your first contribution on GitHub? This may be the one!

To write and run the tests:

  1. Clone/Download the code from this repository. Clone/Download example
  2. Install the pre-requisites:
    Run npm install in your terminal.
  3. Make any changes as you feel necessary.
  4. To run all tests, run npm run allTests in your terminal. To run a specific test, run npm run [testName] in your terminal. For example to run the test located in test/infoTest.js run npm run infoTest
  5. Any test added, should have a test script added to the package.json file in the root directory, using the same naming conventions, node /test/[testName.js].

Original idea by Erich Friedman. Each puzzle has a unique solution. All puzzles © Erich Friedman, 2010.

Art by Kenney and Freepik.