This file contains hidden or 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
;(function($, undefined){ | |
var tracker = null; | |
OATHSurveyTracker = { | |
init: function(slideLabel) { | |
tracker = this; | |
tracker.obj = {}; | |
tracker.modelId = ''; |
This file contains hidden or 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
# Command-line Tic Tac Toe for HUMAN vs COMPUTER written in Python. | |
# Play in a terminal by running 'python tictactoe.py'. | |
import random | |
boxes = [ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ] | |
HUMAN = 'X' | |
COMPUTER = '0' | |
first_player = HUMAN |
This file contains hidden or 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
# Command-line Tic Tac Toe for two humans written in Python. | |
# Play in a terminal by running 'python tictactoe.py'. | |
boxes = [ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ] | |
player_X = 'X' | |
player_0 = '0' | |
first_player = player_X | |
turn = 1 | |
winning_combos = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], |
This file contains hidden or 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
<html> | |
<head> | |
<title>Play Tic Tac Toe</title> | |
<script src="ticTacToe.js"></script> | |
<style> | |
table { | |
margin: 1% auto; | |
border-collapse: collapse; | |
width: 300px; | |
height: 300px; |