append () return game_data def write_json ( data, filename ): with open ( filename, ' w ' ) as file : json. splitlines () def create_game_data (): words_4 = read_words ( ' 4words.txt ' ) words_5 = read_words ( ' 5words.txt ' ) words_6 = read_words ( ' 6words.txt ' ) words_7 = read_words ( ' 7words.txt ' ) game_data = for _ in range ( min ( len ( words_4 ), len ( words_5 ), len ( words_6 ), len ( words_7 ))): game_data. Then, I wrote Python, which is not something I should ever be allowed to do, and used it to pull out words at random into a JSON array of arrays of 4, 5, 6, and 7 letter words: import json import random def read_words ( filename ): with open ( filename, ' r ' ) as file : return file. So, I literally googled “lists of words with 4 letters” (and 5 letters, and 6, and so on), and scraped the lists just in the developer console of the browser, and pasted those into text files. Okay so I knew I wanted to jumble the 4 random words together, but I didn’t have piles of words to pull from. But actually though, what I did next: gathered words Obviously I bought the domain name first. Make it play kind of like the New York Times Connections game.Have 4, 5, 6, and 7 letter words, jumbled together. Make a daily puzzle that changes each day.I came to Brainstory saying “sooo I want to make a game” and slowly but surely it walked me through some of my thoughts around complexity and themes, and I came up with the concept of a jumbled word search game! You can use it to brainstorm ideas, and I needed to think hard about what sort of game I wanted to make! Not to be a mega-shill for my own company, but we have an app called Brainstory that I’m really into. When I see “leaderboard” I think “game” which meant I had to come up with a very fun game worth playing, and build it in less than a couple weeks. Why I built itĪ friend of mine, Jason, is starting a video series where he gives 4 developers 1 idea (aptly named 4 Web Devs, 1 App Idea, wow), and he asked us to build something that could use a leaderboard. I built a word game called Jumblie that I’m very excited about, and I’m gonna tell you how I did it! This is gonna be long, so buckle up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |