Question: Create a class analysis diagram with entity, boundary and controller for syllablast puzzle for javascript, description of game is as follows: A solitaire Syllablast puzzle
Create a class analysis diagram with entity, boundary and controller for syllablast puzzle for javascript, description of game is as follows:
A solitaire Syllablast puzzle is based on four words, each containing four syllables. These original four words are divided into a total of syllables that are then placed in a x grid. Each syllable has a location identified by its row column The player can swap the location of two syllables. The goal is to make a sequence of swaps to reveal the original four words when read from left to right that were disassembled to create the board.
In the initial configuration, none of the syllables in the first column are the first syllable in one of the original four words. Board State # below represents the initial configuration, formed from the words affil,iateimmac,ulateinvis,ible and under,water As you can see, each word has four syllables, separated by commas.
Board State #swaps: score:
ter ate ble der
fil in im i
i late mac un
u vis af wa
Board State #swaps: score:
ter ate ble der
fil u im i
i late mac un
in vis af wa
Initial Configuration Swap u and in syllables
Board State #swaps: score:
ter ate ble der
fil u im i
af late mac un
in vis i wa
Board State #swaps: score:
im ate ble der
fil u ter i
af late mac un
in vis i wa
Swap i and af syllables Swap im and ter syllables
With each swap, the score increases, but note that a swap could decrease the score if a properly located syllable is moved out of its location.
Counting Swap Moves
Until the puzzle is solved, Syllablast records the number of swaps and in addition computes and displays the players score.
Once the puzzle is solved, the player cannot make any more swaps.
Puzzle Reset
The player can reset the puzzle to its initial state: both the score and the number of swaps is reset to and the board is returned to its initial configuration.
Undo Swap
The player can choose to undo the most recent swap and can do so until the Initial Configuration appears once again.
Initial Configurations
These are the three configurations that you must allow the player to choose from.
Configuration #: invis,ibleimmac,ulateaffil,iateunder,water
Configuration #: examiningreinforce,mentinfor,mativematerial
Configuration #: mechan,icalcalculat,ingimmediatediagonal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
