Metadata-Version: 2.1
Name: manabase-solver
Version: 0.1.3
Summary: Magic: the Gathering manabase solver
Author-email: Thomas David Baker <bakert@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Thomas David Baker
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/bakert/manabase-solver
Project-URL: Repository, https://github.com/bakert/manabase-solver
Project-URL: Issues, https://github.com/bakert/manabase-solver/issues
Keywords: magic,mtg,manabase,solver
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Games/Entertainment
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: more-itertools
Requires-Dist: multiset
Requires-Dist: ortools

# 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>
