Skip to content

Instantly share code, notes, and snippets.

Kate Edmundson kedmundson

Block or report user

Report or block kedmundson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oath_survey_tracker.js
;(function($, undefined){
var tracker = null;
OATHSurveyTracker = {
init: function(slideLabel) {
tracker = this;
tracker.obj = {};
tracker.modelId = '';
@kedmundson
kedmundson / tictactoe_vs_computer.py
Created Mar 1, 2016
Human vs. Computer Tic Tac Toe, including revisions to tictactoe.py
View tictactoe_vs_computer.py
# 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
View tictactoe.py
# 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],
View ticTacToe.html
<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;
You can’t perform that action at this time.