Monthly Archives: November 2015

Creating Tic-tac-toe in Swift: Gameplay and data model

This blog post is an update on my work-in-progress Tic-tac-toe game, being written in Swift. The source code is available on GitHub: I’ve reached the first major milestone. The program is capable of playing Tic-tac-toe against itself, although there … Continue reading

Posted in Swift, Tic-tac-toe | Tagged , | 1 Comment

Creating Tic-tac-toe in Swift

Normally I blog about a program I’ve already written. I decided this time to take a different approach, and blog about a Tic-tac-toe program that I’m writing instead. This will give people who are interested in watching a Swift program evolve over … Continue reading

Posted in Swift, Tic-tac-toe | Tagged , | 3 Comments

Compressing a Swift array

Suppose you have an array of values in your Swift app and you need to compress it to a smaller size, with the intention of making it occupy less memory. If the array contains many consecutive repeated values it could be … Continue reading

Posted in Swift | Tagged | 1 Comment

I’m back

This blog’s half year of inactivity is over. I had joined Apple as a software engineer, to work on a low-level communications component that runs on all iOS and OS X devices. As an Apple employee I was prohibited from blogging, hence … Continue reading

Posted in Uncategorized | 6 Comments