This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FizzBuzzBang { | |
func start() { | |
var results = "" | |
for i in 1...100 { | |
results += fizzTestResult(i) | |
results += buzzTestResult(i) | |
results += bangTestResult(i) | |
if count(results) == 0 { |