Undoable game state
A tic-tac-toe game built with UIKit needs unlimited undo. What would you store to support undoing?
A tic-tac-toe game built with UIKit needs unlimited undo. What would you store to support undoing?
Instead of mutating one board in place, push each move made so far (cell position and player) onto an array in order; undo is a single removeLast(), and the board's shape is recomputed from this array every time.
UIKitShort answerAdvanced
You're moving a screen built with UICollectionViewFlowLayout and an index-based…
#snapshot
UIKitMultiple choiceAdvanced
Which statements about using UICollectionViewDiffableDataSource are correct? Pick all…
#snapshot
UIKitShort answerBasics
In a UIKit collection view with image cells, fast scrolling makes the previous request's…
#uikit
UIKitShort answerBasics
A UIKit table screen shows election results. Once every district's result has arrived…
#snapshot