Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey, a few months back I trained a NN to generate MTG cards. I submitted a post to the MTG subreddit but it got blocked as spam and I never managed to get the mods to approve it.

My question was whether natural language generating networks could be used as a tool to assist game design. I must say I'm quite impressed with the results. Many cards could be legit with minor tweaks and some balance.

The point isn't to produce fully procedural content, but to assist designers to produce better content faster. Honestly I think people should start taking these tools seriously in the procedural content generation world.

This is the (pretty rough) repo with my code.

https://github.com/angarg12/this_trading_card_does_not_exist

These are some examples of cards

Guardian of Chains Counter target spell. It deals 4 damage to any target

Orchid's Fury Target Vampire creature gets +1/+0 until end of turn

Surveyor's Arch Untap target player. It deals 3 damage to that player. You lose 1 life

Partisans of the Undying Search your library for a basic land card, reveal that card, put it into your hand, then shuffle

Caravan Ritual Enchant creature When caravan Ritual enters the battlefield, return target creature to its owner's hand. Activate only during your upkeep. Equip {2}

Brahms of the Grave When Ithabadi Troghr enters the battlefield, return target creature card from your graveyard to your hand. It gains haste until end of turn'

Sleeping Dread Knight Flying (This creature can't be blocked except by two or more creatures card types.) Whenever Sleeping Dread Knight deals combat damage to a player, creatures you control get +X/+X until end of turn

Genswurm, the Flesh Orchard When Gnojscos, God of Vampires enters the battlefield, sacrifice a land. {5}{G}{G}, Sacrifice Genswurm: Draw a card

Storm Call Choose up to two target lands. You gain 1 life. An opponent has "{T}, Sacrifice Storm Call: Regenerate this permanent, then create a token with "{T}, Sacrifice Storm Call: Add up to X +1/+1 counters."

Wandering Hollow {T}: Create a red and white Zombie artifact creature token with base power and toughness 5/5. Illus. Angel Albatross on the battlefield (This creature enters the battlefield with X +1/+1 counters on it. When it dies, return it to the battlefield under your control.)



I was looking at the advanced options, and specifying Name, Mana Cost and Type don't seem to do what I expect.

Example:

Fire Bomb 2R Instant

the mana is loaded as 2R instead of 2(Mountain Symbol) and the name/type don't seem to line up with what is generated.

Is there something I am missing here or do those inputs just override what is on the card?


you need to put mana cost as {2}{R} !




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: