Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ohrlundk assignment 1 #37

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Binary file added projects/ohrlundk/CS362-W2020-master.zip
Binary file not shown.
762 changes: 762 additions & 0 deletions projects/ohrlundk/dominion/Dominion.py

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions projects/ohrlundk/dominion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Dominion
complete Dominion game in python, text-only

Dominion is a popular deck-building game, for 2-4 players. Each card in the deck gives a player points or money, or lets a player perform a certain action when played. Each player tries to get the most points before the end of the game. As of July 2016, I have only programmed the base version.

There are two versions of the game--one that uses a module and a main page, and one that includes all the code in one main page, useful for sharing with a friend who doesn't have python. (It can be executed in an online REPL, hence the name.)

The list of players is hard-coded, so edit to play. Add a * at the beginning of the name for a computer player.

The computer (currently) plays a very simple direct strategy. Its main advantage is that is has a perfect memory of every transaction, and an accurate, dispassionate calculation of when the game is likely to end.
Loading