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
- (int) checkWin:(char)player :(int)x :(int)y | |
{ | |
int row = 0; | |
int col = 0; | |
int diag = 0; | |
int rdiag = 0; | |
for (int i = 0; i < 3; i++) | |
{ | |
if(matrix[x][i] == player) col++; | |
if(matrix[i][y] == player) row++; |
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
''' | |
Usage: | |
> python twit_faves_cli.py username | |
''' | |
import httplib | |
import urllib | |
import json | |
import sys | |
base_url = 'api.twitter.com' |
NewerOlder