CSCI 446 Unit #12 JS Same Game

Programming Assignment

For this assignment you will use JavaScript to create a game called Same Game (may have other names as well). The figures below show the game progression. Your styling may be different, of course.

Start of game
Figure 1: Start of normal game, 4 colors. Notice 4 red tiles forming a T on fifth row from top.
Remove 4 tiles
Figure 2: Removed 4 adjacent red tiles, see score = (4*3) and tiles above the removed ones have moved down.
2-color game
Figure 3: Start of Same Game using only 2 colors (for testing).
player wins
Figure 4: No tiles left, player wins.
player wins
Figure 5: No adjacent tiles of same color, player loses.

Be sure to read the specific requirements, as some are not obvious just by looking at the figures.

Hints