Skip to content

Instantly share code, notes, and snippets.

##Brian Chesley TicTacToe
import random
import collections
def display_board(board):
print
for row in board:
print row
## I tried to have line 7 as: print " ".join(row), but I got an error
@brianchesley
brianchesley / Connect 4
Created March 17, 2014 12:51
Connect 4
##Brian Chesley, Connect 4
def run():
board = []
for i in range(0,6):
board.append([0]*7)
for row in board:
print row
turn = 1
p1_wins = False
@brianchesley
brianchesley / Carleton News Update
Last active August 29, 2015 13:57
Carleton News Update
from bs4 import BeautifulSoup
import urllib2
import urllib
import re
def get_links():
final_list = []