/2048

2048 swift implementation for IOS

Primary LanguageSwift

2048 for IOS

Famous game 2048 written in pure Swift 4.

Tiles' data is saving with CoreData, high score and current score – with User Defaults. All views are using AutoLayout. Developed without Interface Builder.

To change the dimention just change 1 value in ViewController.swift

let board = Board(dimension: dimension, offsetBtwTiles: extraSpace, boardSize: boardSize)

2048 gameplay 2048 restart 2048 lost