Game analysis using Auto Layout

I gave this talk at CocoaHeads Taipei, a local iOS developers meetup, in August 2017. Auto Layout uses linear programming to calculate layout. What if we could feed a general linear programming problem into Auto Layout to find a solution? I formulated a game strategy problem and showed how we could use Auto Layout to find the optimal solution.