Word Scramble is a game that requires you to build as many new words as possible using the letters from a root word

Overview

Word-Scramble-iOS-Swift-UI

Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 27 25 Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 28 59

Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 29 59 Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 29 46 Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 29 21 Simulator Screen Shot - iPhone 13 Pro Max - 2022-03-03 at 07 29 12

Word Scramble is an iOS, Swift UI project with these implementaions:

  • Loading assets into a project
  • Parsing data from a text file/list into an array
  • Keyboard input
  • Removing AutoCapitalisation
  • Removing AutoCorrect
  • Autofocusing the input field
  • Implementing game logic and rules
  • Handling errors and communicating back to the user
  • Building a List View from user generated words
  • UI Toolbar Group
  • Custom alerts to alert rule breaking

The aim of the game is to build as many of your own words as possible using the letters from a root word.

The rules are:

  • You can only use the letters that are in the root word.
  • You can only use each letter once.
  • You cannot use more letters than there are.
  • Your words need to be real English words, spelled correctly.
  • Your words needs a minimum length of 3 characters.
  • You cannot enter the same word twice.
  • You cannot enter the root challenge word itself.

I also created an extension that implements additional features to my base project:

  • Calculate all possible words from all possible permutations of the root letters.
  • Communicate to the user the total "word space" of how many new words are possible to create.
  • Update how many have been discovered out of the total word space.
  • Additional scrabble dictionary list asset for checking all possible words.
  • An improved scoring system that scales rewards based on word length.

In this implementation I discovered:

  • The advantages of using Set<> over Array<> for it's Big O(1) access speed.
You might also like...
The one and only open source 4X MMO mid-core strategy game for iOS. Similar to Game of War and Mobile Strike

4X MMO Strategy Game for iOS I have spent 4 years of my life and a significant amount of money into completing this game and I hope you enjoy it. For

🦁 🃏 📱 An animal matching puzzle card game– built with turn-based game engine boardgame.io and React-Native + React-Native-Web
🦁 🃏 📱 An animal matching puzzle card game– built with turn-based game engine boardgame.io and React-Native + React-Native-Web

Matchimals.fun an animal matching puzzle card game 🦁 🃏 🍎 Download for iOS from the App Store 🤖 Download for Android from the Google Play Store 🖥

Gravity Switch - A dynamic game that integrates swiping and tapping to create a fun interactive game

GravitySwitch Gravity Switch is a dynamic game that integrates swiping and tappi

FlagGuess-Game - A game to collect points by guessing flags
FlagGuess-Game - A game to collect points by guessing flags

Flag Guess Game A game to collect points by guessing flags! Wrong Choice

CardGameEngine - Prototyping a game engine for the Bang card game
CardGameEngine - Prototyping a game engine for the Bang card game

CardGameEngine Prototyping a game engine for the Bang card game. Features Engine is open source Powerful scripting language using JSON Card design is

Little Go. An iOS application that lets you play the game of Go on the iPhone or iPad.

Introduction Little Go is a free and open source iOS application that lets you play the game of Go on the iPhone or iPad. You can play against another

iPhone and iPod Touch version of Skeleton Key: is an addictive and unique puzzle game in which you shift keys around the board unlocking treasure chests. Made with cocos2d-iphone.

Skeleton Key (iOS) Skeleton Key is an addictive and unique puzzle game in which you shift keys around the board unlocking treasure chests. It's availa

A Star Wars themed card game designed to see if you know your sith vs jedi

StarWarsCardGame A Star Wars themed card game designed to see if you know your sith vs jedi. Learning Objectives: Alert Controllers, Protocol/Delegate

Multiplayer RockPaperScissors iOS game. You can play with anybody all around the world to be a RockPaperScissors master!
Multiplayer RockPaperScissors iOS game. You can play with anybody all around the world to be a RockPaperScissors master!

RockPaperScissors RockPaperScissors is an app where you can play classic "rock, paper, scissors game" with friends on your phones. Using Firebase you

Owner
Jack Cotton-Brown
Building apps for iOS and Android. Using Swift, SwiftUI, C# and Unity. Living in Bali since Jan, 2020.
Jack Cotton-Brown
A game you can guess English words about family with Swift

Guess Word In this game you can guess English words about family. The Project cr

slemeshaev 0 Dec 18, 2021
iOS association game chatbot. AI based on neural word embedding language model. Image recognition with convolutional neural net.

AssociationBot ##iOS association game chatbot. UI based on JSQMessagesDemo. Association database created with the help of Word2Vec neural word embeddi

Alex Sosnovshchenko 16 Nov 24, 2022
WordleAverage - Adds an Average Guesses statistic to the viral daily word game Wordle

WordleAverage Adds an "Average Guesses" statistic to the viral daily word game W

null 0 Jan 26, 2022
Spare Parts is a 2D physics game that lets you build silly contraptions and machines.

Spare Parts Spare Parts is a 2D physics game that lets you build silly contraptions and machines. The goal for this project is: 100% of the code is op

Adam Wulf 14 Feb 9, 2022
BabySortingToyGame - Build a little game for babies to sort shapes in the correct location. This is made in SwiftUI using drag gestures.

This is a demo to build a little mini-game "for babies". It's inspired in this kind of games:

Pedro Rojas 17 Oct 23, 2022
Switshot is a game media manager helps you transfer your game media from Nintendo Switch to your phone, and manage your media just few taps.

Switshot is a game media manager helps you transfer your game media from Nintendo Switch to your phone, and manage your media just few taps.

Astrian Zheng 55 Jun 28, 2022
IOS Spin Game - A simple spin game using SwiftUI

IOS_Spin_Game A simple spin game using Swift UI.

Md. Masum Musfique 4 Mar 23, 2022
iOS game for people to learn new languages who respond well to repetition.

iOS game to learn new languages for people who respond well to repetition. Including Italian, French, Chinese, German, Polish, Portuguese, Russian & S

Clinton D'Annolfo 22 Nov 1, 2022
Mecha Hamster is a game where you roll through customizable environments that you can share with your friends.

MechaHamster {#mechahamster_readme} MechaHamster is a game about guiding a futuristic hamster ball through dangerous space mazes, create mazes of thei

Google 444 Jan 3, 2023
A little arcade game that uses SwiftUI as a game engine.

SwiftUI Game A little arcade game that uses SwiftUI as a game engine :) Just copy the code into the Blank playgroundbook in Swift Playgrounds app on i

Roman Gaditskiy 10 Sep 30, 2022