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

Automated addition of cards to the game, started a script to play the game, successfully added ~20 cards to game, and included all F22 work #1

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

aseghehey
Copy link

The file used to automate the addition of cards to the game is in AMHR/testing and there's a readme file that explains the logic.

I have started the script to play the game, it is MTG/testGame.py and it's currently not done, but a good first step as all the tools are there. Need to automate it, but the logic is very simple and is there.

Also, added the work that we've been doing since Fall 22, it's under AMHR/

@aseghehey aseghehey changed the title Automated addition of cards to the game, and started a script to play the game Automated addition of cards to the game, started a script to play the game, and added all F22 work Apr 17, 2023
@aseghehey aseghehey changed the title Automated addition of cards to the game, started a script to play the game, and added all F22 work Automated addition of cards to the game, started a script to play the game, successfully added ~20 cards to game, and added all F22 work Apr 17, 2023
@aseghehey aseghehey changed the title Automated addition of cards to the game, started a script to play the game, successfully added ~20 cards to game, and added all F22 work Automated addition of cards to the game, started a script to play the game, successfully added ~20 cards to game, and included all F22 work Apr 17, 2023
MTG/testGame.py Outdated
for card in cardList:
cardCharacteristics = card.characteristics
print(f"{cardCharacteristics.name}: \033[91m{cardCharacteristics.text}\033[0m")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check the targets from the card, and check if anything happened to them

MTG/testGame.py Outdated
observeEffect = players[1].life

inPlay = play.Play(apply_func=instant.play_func,
card=instant)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: instant.targets() needs user to type target like "opponent" may have to change it from getting user input to taking it as param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant