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
#! /usr/bin/python | |
import random | |
import argparse | |
from random import randint | |
def build_parser(): | |
parser = argparse.ArgumentParser(description='Command Line Implementation of Minesweeper', add_help=True) | |
parser.add_argument('-r', '--rows', type=int, default=8, help='Number of Rows') | |
parser.add_argument('-c', '--columns', type=int, default=9, help='Number of Columns') |
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
churl@beebook:~/Python/Raj$ git log -p | |
commit ce78eef81783f638cbe57df9c55b9a43ff5a8cab | |
Author: Churl Bee <i8deadbabies@gmail.com> | |
Date: Thu May 24 14:21:42 2012 -0400 | |
uploaded first raj.py | |
diff --git a/README b/README | |
new file mode 100644 | |
index 0000000..ce694b7 |
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
from sys import argv | |
from os.path import exists | |
script, from_file, to_file = argv | |
action = open(from_file) |