![]() Note: is up to you to apply styles to the container div of the puzzle. Var result = wordfindgame.solve(gamePuzzle, words) Īnd the result should be a soup of letter similar to: Var gamePuzzle = wordfindgame.create(words, '#puzzle-container', '#puzzle-words') Start a basic word game without customization ! 'cytoplasm', 'organelle', 'diffusion', 'osmosis', 'decadent', 'excellent', 'frequent', 'impatient', 'cell', 'intensify','speed','count','consonant','someone', 'artisan', 'apprentice', 'meteorologist', 'blizzard', 'tornado', 'anniversary', 'centennial', 'millennium', 'perennial', 'division', 'effect', 'underline', 'view', 'annual', Var words = ['cows', 'tracks', 'arrived', 'located', 'sir', 'seat', The following example shows a full implementation (but without custom options at the initialization) using both scripts ( wordfind.js and wordfindgame.js) * Wordfind is freely distributable under the MIT license. ![]() You can get a copy of the script in the official Github repository here, however the repository doesn't provide a minified version of it, so you can use the following minified version in your project: // wordfind.js ![]() In order to create our soup of letters, we are going to work with wordfind.js, wordfind is a simple javascript library for generating word find (also known as word search) puzzles. Have you ever played wordfind in any of those cheap books that you buy in the train station or bus? The idea of the soup of letters, is to find a list of words in a table (so-called soup). This time, you'll learn how to create a soup of letter game with Javascript and wordfind.js easily (with all posible use cases as solution, multiple orientation, word overlap and others). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |