Skip to content

sougatoroy3/WordScramble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 WordScramble - SwiftUI Game

A fun, simple word game built with SwiftUI! Players are given a random root word and must come up with as many valid English words as possible using only the letters from the root word.


πŸ“± Features

  • πŸ“ Type in your words via a TextField
  • πŸ”€ Automatic validation for:
    • Unused (original) words
    • Words made from the root word
    • Valid English words using UITextChecker
  • ⚠️ Alerts for invalid entries
  • πŸ“ƒ Track entered words with icons showing their length
  • πŸ”„ Loads random root word from a start.txt file in the bundle

πŸ›  Built With

  • Swift 5
  • SwiftUI
  • UIKit (UITextChecker for spell-checking)

πŸ“‚ Project Structure

  • ContentView.swift β€” Main view and logic for the game
  • start.txt β€” List of root words (placed in the app bundle)

πŸš€ Getting Started

  1. Clone the repository:
    git clone https://github.com/your-username/WordScramble-SwiftUI.git
  2. Open the project in Xcode.
  3. Add a start.txt file to your app bundle with a list of words, one per line: silkworm developer keyboard swift ...
  4. Run the app on a simulator or physical device.

🧠 How It Works

When the app starts, it loads a list of words from start.txt. A single word is randomly selected as the root word. Users must enter as many real English words as possible that: Use only the letters from the root word Have not already been used Are real, valid English words

About

WordScramble is a lightweight iOS word game built using SwiftUI. It challenges users to create as many valid English words as possible using letters from a randomly chosen root word. The app includes real-time validation for originality, letter composition, and dictionary correctness by combining SwiftUI with UIKit element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages