Skip to content

Commit

Permalink
cardbase arg is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
dwagon committed Oct 21, 2023
1 parent a41519d commit d8d1272
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ options:
--ally ALLIES Include specific ally
--trait TRAITS Include specific trait
--cardset CARDSET File containing list of cards to use
--cardbase CARDBASE Include only cards from the specified base
--card_path CARD_PATH
Where to find card definitions
--prosperity Use colonies and platinum coins
Expand Down
7 changes: 3 additions & 4 deletions dominion/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ def parse_args(self, **args):
self._allow_potions = args.get("potions", True)
self.prosperity = args.get("prosperity", False)
self.oldcards = args.get("oldcards", False)
self.quiet = args["quiet"] if "quiet" in args else False
self.numplayers = args["numplayers"] if "numplayers" in args else 2
self.cardbase = args["cardbase"] if "cardbase" in args else []
self.bot = args["bot"] if "bot" in args else False
self.quiet = args.get("quiet", False)
self.numplayers = args.get("numplayers", 2)
self.bot = args.get("bot", False)
self.randobot = args.get("randobot", 0)
self._allow_shelters = args.get("shelters", True)

Expand Down
3 changes: 0 additions & 3 deletions dominion/rungame.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ def parse_cli_args(args=None):
type=argparse.FileType("r"),
help="File containing list of cards to use",
)
parser.add_argument(
"--cardbase", action="append", help="Include only cards from the specified base"
)
parser.add_argument("--card_path", default="dominion/cards", help=argparse.SUPPRESS)
parser.add_argument(
"--artifact_path", default="dominion/artifacts", help=argparse.SUPPRESS
Expand Down
1 change: 0 additions & 1 deletion tests/Test_RunGame.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def test_defaults(self):
"""Test that no args gives us the defaults"""
args = rungame.parse_cli_args([])
self.assertEqual(args.numplayers, 2)
self.assertEqual(args.cardbase, None)
self.assertEqual(args.prosperity, False)
self.assertEqual(args.initcards, [])

Expand Down

0 comments on commit d8d1272

Please sign in to comment.