-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: master
Are you sure you want to change the base?
Conversation
Get cards from automation -> add to game
MTG/testGame.py
Outdated
for card in cardList: | ||
cardCharacteristics = card.characteristics | ||
print(f"{cardCharacteristics.name}: \033[91m{cardCharacteristics.text}\033[0m") | ||
|
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
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/