Skip to content

Instantly share code, notes, and snippets.

import random
import time
def isGameOver():
whoWon = ''
for i in range(0, 2):
if board[i][0] == board[i][1] == board[i][2] and board[i][0] != '-':
whoWon = board[i][0];
return [True, board[i][0]]
if board[0][i] == board[1][i] == board[2][i] and board[0][i] != "-":
const cracklePop = (input) => {
var result = "";
if (input % 3 === 0) result = result.concat("crackle");
if (input % 5 === 0) result = result.concat("pop");
if (result === "") result = input;
return result;
};
for (let i = 1; i < 101; i++) {
console.log(cracklePop(i));