Skip to main content

manabase-solver

Magic the Gathering manabase solver

Usage

from manabase_solver import card, DEFAULT_WEIGHTS, make_deck, penny_dreadful_lands, solve

Pestermite = card("2U")
RestorationAngel = card("3W")
KikiJikiOnTurnSix = card("2RRR", 6)
deck = make_deck(Pestermite, RestorationAngel, KikiJikiOnTurnSix)
solution = solve(deck, DEFAULT_WEIGHTS, penny_dreadful_lands)
print(solution)
print(solution.lands)

Development

$ git clone https://github.com/bakert/manabase-solver
$ cd manabase-solver
$ python3.10 -m venv .
$ source bin/activate
$ pip install -r requirements.txt
$ source bin/activate
$ pip install -e .
$ python scripts/scratch.py
$ pip install -r requirements-dev.txt
$ source bin/activate
$ make all

Build

$ python -m build

Publish

$ vi pyproject.toml  # Bump version number
$ git add -p
$ git commit -m "Bump version number to vX.X"
$ git tag -a "vX.X" -m "manabase-solver vX.X"
$ \rm -r dist
$ python -m build
$ twine upload dist/*

(c) 2024 Thomas David Baker bakert@gmail.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manabase_solver-0.1.3.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manabase_solver-0.1.3-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file manabase_solver-0.1.3.tar.gz.

File metadata

  • Download URL: manabase_solver-0.1.3.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for manabase_solver-0.1.3.tar.gz
Algorithm Hash digest
SHA256 00a479929358538efa0bff1ed3887faad79a4c71a948ce9aaae978dd84d86909
MD5 cb101fad0c44231775cbda08e8c3bb9f
BLAKE2b-256 9349c0cff5e63a99349a95e239bf270302b4a302f6a929ddba27db7b34830e55

See more details on using hashes here.

File details

Details for the file manabase_solver-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for manabase_solver-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 801088881eba043b4526c825021d4c03aa35e2718c472d71d4a3f9b5af3f4cc7
MD5 f638031abb44e9599b6ecefec8677fbf
BLAKE2b-256 a1eb76ea6df0fafaa9859baa6a1907b01cfd6c7452212da8258f2d7ffdb0c8db

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page