Skip to content

Instantly share code, notes, and snippets.

/*
* usage: ./dependencyDiscoverer [-Idir] ... file.c|file.l|file.y ...
*
* processes the c/yacc/lex source file arguments, outputting the dependencies
* between the corresponding .o file, the .c source file, and any included
* .h files
*
* each .h file is also processed to yield a dependency between it and any
* included .h files
*
# Tic Tac Toe (User vs Computer)
import random
def print_grid(move, player, print_):
pos_list[move] = player
# Grid on which the player and computer play on
grid = """