Skip to content

alvareztech/wordgame-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordGame for iOS

By Daniel Alvarez, alvarez.tech.

Milestones

Info

How much time was invested

About 4 hours.

How was the time distributed (concept, model layer, view(s), game mechanics)

The game is very small so I decided to use a minimal architecture pattern MV (see more about MV). Definitely if the application had more layers, network, data storage, etc. and each of these parts need to be tested, a more natural choice would have been MVVM.

  • Model (1 hr)
    • Word (All related to the Word model, including reading words)
  • View (1.5 hr)
    • WordScreen (UI and screen logic, game logic)
  • Unit Tests & UI Tests implemented (1.5 hr)

Decisions made to solve certain aspects of the game

It was important to simplify the code using the modern features that Swift and SwiftUI gives us. This minimizes the amount of code and files. Less code, less bugs.

Decisions made because of restricted time

I focus on meeting the requirements of each Milestone. UI, UX was secondary as it was not mentioned in the requirements.

What would be the first thing to improve or add if there had been more time

As a game, it is important that it is attractive to users. I would have added animations, better design, colors, etc.

Also prepare the application to scale it big by perhaps selecting other patterns and making it more testable.