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
aseghehey wants to merge 23 commits intoAdvancing-Machine-Human-Reasoning-Lab:masterfrom
Conversation
Get cards from automation -> add to game
aseghehey
commented
Apr 21, 2023
MTG/testGame.py
Outdated
| for card in cardList: | ||
| cardCharacteristics = card.characteristics | ||
| print(f"{cardCharacteristics.name}: \033[91m{cardCharacteristics.text}\033[0m") | ||
|
|
Author
There was a problem hiding this comment.
will check the targets from the card, and check if anything happened to them
aseghehey
commented
Apr 21, 2023
MTG/testGame.py
Outdated
| observeEffect = players[1].life | ||
|
|
||
| inPlay = play.Play(apply_func=instant.play_func, | ||
| card=instant) |
Author
There was a problem hiding this comment.
TODO: instant.targets() needs user to type target like "opponent" may have to change it from getting user input to taking it as param
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/