Question: Need to create syllablast puzzle app in React with typescript, there should be boundary class, model class, controller class and puzzle class. Description of game
Need to create syllablast puzzle app in React with typescript, there should be boundary class, model class, controller
class and puzzle class. 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 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,iate", immac,ulate",
invis,ible", and under,water". As you can see, each word has four syllables, separated by commas.
Board State #swaps: score:
Board State #swaps: score:
Initial Configuration Swap u and in syllables
Board State #swaps: score:
Board State #swaps: score:
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 player's
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.Need to create syllablast puzzle app in React with typescript, there should be boundary class, model class, controller
class and puzzle class. 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 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,iate", immac,ulate",
invis,ible", and under,water". As you can see, each word has four syllables, separated by commas.
Board State #swaps: score:
Initial Configuration Swap u and in syllables
Board State #swaps: score:
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 player's
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,ible", immac,ulate", affil,iate", under,water"
Configuration #: examining", reinforce,ment", infor,mative", material
Configuration #: mechan,ical", "cal,culat,ing", immediate", diagonal
Please have your interface change the backgrounds to green for the syllables that are part of the player's score
The final app should look like this:
Reset
Undo
O#
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
