-
Write some code you want to make into a Git project.
-
Change to the root directory of the project.
$ cd project
-
Initialize a Git repository.
1 Action , Discard any number of cards , 1 Card per card discarded . | |
Trash up to 4 cards from your hand . | |
2 Cards , Line , When another player plays an Attack card , you may reveal this from your hand , If you do , you are unaffected by that Attack . | |
$2 , You may immediately put your deck into your discard pile . | |
1 Card , 2 Actions . | |
1 Buy $2 | |
Gain a card costing up to $4 . | |
Gain a Silver card; put it on top of your deck , Each other player reveals a Victory card from his hand and puts it on his deck (or reveals a hand with no Victory cards) . | |
Trash this card , Gain a card costing up to $5 . | |
Worth 1VP for every 10 cards in your deck (rounded down) . |
import random | |
#f = open("DominionCardList.txt") | |
#cards = [] | |
#for line in f: | |
# cards.append(line[:-1]) | |
cards = ['Cellar', 'Chapel', 'Moat', 'Courtyard', 'Pawn', 'Secret Chamber', 'Embargo', 'Haven', 'Lighthouse', 'Native Village', 'Pearl Diver', 'Herbalist', 'Hamlet', 'Crossroads', 'Duchess', "Fool's Gold", 'Chancellor', 'Village', 'Woodcutter', 'Workshop', 'Great Hall', 'Masquerade', 'Shanty Town', 'Steward', 'Swindler', 'Wishing Well', 'Ambassador', 'Fishing Village', 'Lookout', 'Smugglers', 'Warehouse', 'Loan', 'Trade Route', 'Watchtower', 'Fortune Teller', 'Menagerie', 'Develop', 'Oasis', 'Oracle', 'Scheme', 'Tunnel', 'Black Market', 'Bureaucrat', 'Feast', 'Gardens', 'Militia', 'Moneylender', 'Remodel', 'Smithy', 'Spy', 'Thief', 'Throne Room', 'Baron', 'Bridge', 'Conspirator', 'Coppersmith', 'Ironworks', 'Mining Village', 'Scout', 'Caravan', 'Cutpurse', 'Island', 'Navigator', 'Pirate Ship', 'Salvager', 'Sea Hag', 'Treasure Map', 'Bishop', 'Monument', 'Quarry', 'Talisman', "Worker's Village", 'Farming |
git config --global user.name 'Tom Helmuth' | |
git config --global user.email [email protected] | |
git config --global core.editor emacs | |
git config --global color.ui true | |
git config --global alias.st status | |
git config --global alias.ch checkout | |
git config --global alias.br branch |
-
The
master
branch is the stable main branch. No one should ever need to edit themaster
branch, and even if they do, they should definitely never push it to the Github repository. All changes tomaster
will come as merges from other branches, which Lee will be responsible for merging withmaster
. -
Branches are easy and cheap to create, and should be used extensively. If you ever want to "try something out", make sure you branch from
master
(or some other branch) first. If you want to add a feature to a project permanently, create a branch for it while you test it, and once the bugs are ironed out, then it can be merged tomaster
(by Lee or whoever is managing the project). If you find a bug inmaster
, create a branch to fix it. If you want to add some code for an experiment for a paper, create a branch for it. I cannot emphasize enough: things will be easier for all of us if we always create branches for any changes tomaster
that we need. -
Whenever Lee updates