Skip to content

Instantly share code, notes, and snippets.

@Shubham-0812
Created July 12, 2025 09:08
Show Gist options
  • Select an option

  • Save Shubham-0812/7a83d1663a52ed655cc4f35bf69c0500 to your computer and use it in GitHub Desktop.

Select an option

Save Shubham-0812/7a83d1663a52ed655cc4f35bf69c0500 to your computer and use it in GitHub Desktop.
import SwiftUI
struct Game {
let rounds: [GameRound]
let roundTimeLimit: TimeInterval
// difficulty
// hintsRemaining
// category
}
// 1 Round
struct GameRound: Identifiable {
let id: String = UUID().uuidString
let characters: [Character]
let possibleWords: [String]
var requiredWordCount: Int
var possibleWordsCount: Int { possibleWords.count }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment