Skip to content

Instantly share code, notes, and snippets.

View kmckinley's full-sized avatar

Kevin McKinley kmckinley

  • Kemsoft, Inc.
  • Austin, TX
View GitHub Profile
/*
Unlimited Tic Tac Toe!
This algorithm determines if a game has a winner, in progress, or finished with a tied game.
There is no limit to the size of the game as long as the size is a perfect square root e.g., 4,9,16,25,ect
*/
class TicTacToe {
let wins = "win!!"
func start(sequence: String) -> String {
let charSize = count(sequence)
class FizzBuzzBang {
func start() {
var results = ""
for i in 1...100 {
results += fizzTestResult(i)
results += buzzTestResult(i)
results += bangTestResult(i)
if count(results) == 0 {