Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
zats committed Aug 16, 2015
1 parent ffc1c05 commit fb29013
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions _posts/2015-08-15-fizz-buzz.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ published: True

A great idea found at [knowing.net](http://www.knowing.net/index.php/2015/08/04/fizzbuzz-with-ios-9-gameplaykit-expert-system-in-c-with-xam-ios) and backported to swift.

[Fizz buzz](https://en.wikipedia.org/wiki/Fizz_buzz) is a simple game. GameplayKit makes it very easy to describe the rules. There is a vast place for improvement when working with state untyped dictionary. It can definitely use some "swiftification". Here is the code:
[Fizz buzz](https://en.wikipedia.org/wiki/Fizz_buzz) is a simple game and GameplayKit API making it equally simple to describe the rules. Untyped state dictionary can definitely use some "swiftification", but overall, code is quite simple. Here it is:

{% gist zats/0ad1dac35e75587da7e0 fizzbuzz.swift %}

Expand All @@ -20,19 +20,8 @@ Output is
2
fizz
4
buzz
fizz
7
8
fizz
buzz
11
fizz
13
14
fizz buzz
16
buzz
...
```

I'm looking forward to seeing frameworks emerging on top of GameplayKit! Foundation seems very promising.
I'm looking forward to seeing gaming and not only frameworks emerging on top of GameplayKit! Foundation is very promising.

0 comments on commit fb29013

Please sign in to comment.