tag:blogger.com,1999:blog-889604442512373664.post5501756397236365644..comments2023-10-31T08:28:52.391-07:00Comments on Computer Programming and Magic: The Gathering: Pros of MTG ForgeForgehttp://www.blogger.com/profile/15838286606081721333noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-889604442512373664.post-63138899518580892682009-09-15T10:49:05.319-07:002009-09-15T10:49:05.319-07:00Karnblack, "You're doing a great job with...Karnblack, "You're doing a great job with this program. Are you the only one working on it? I'm amazed at how much it has grown in the past couple of years."<br /><br />Thanks, in 2007 MTG Forge had 400 cards and now it has over 1,800. There are about 2-3 main coders and about 2-3 other people who contribute smaller bits of code.Forgehttps://www.blogger.com/profile/15838286606081721333noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-23372691666199750682009-09-15T10:47:02.548-07:002009-09-15T10:47:02.548-07:00telengard,
Hopefully you find many errors with t...telengard, <br /><br />Hopefully you find many errors with the AI playing itself. For MTG Forge version 2 I'm planning on letting the AI play itself in order to "evolve" a better AI and to find some nasty bugs, which are very annoying if a player finds during an important game.Forgehttps://www.blogger.com/profile/15838286606081721333noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-1118704101371375422009-09-15T10:44:50.910-07:002009-09-15T10:44:50.910-07:00Thanks for your suggestions
Marek14, there are ma...Thanks for your suggestions <br />Marek14, there are many things that could be done to improve the "Generate Deck" option. I personally wish it would create a deck using a mana curve (that maybe the user could set) so that your deck wouldn't be completely random. The Generate Deck option doesn't include any multi-colored cards.Forgehttps://www.blogger.com/profile/15838286606081721333noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-74147099614999838572009-09-14T23:39:24.088-07:002009-09-14T23:39:24.088-07:00The final part is to select the spells.
A very si...The final part is to select the spells.<br /><br />A very similar approach to land base can also work here. Every spell is marked by what kind of deck it can be used with. This is usually determined by its color, but there are exceptions<br /><br />Grizly Bears ; G<br />Obviously, you need green deck to play Grizzly Bears<br /><br />Watchwolf ; GW<br />And equally as obviously, your deck must play both green and white to play Watchwolf<br /><br />Ornithopter ;<br />While Ornithopther has no requirements at all.<br /><br />Kitchen Finks ; G W<br />Kitchen Finks, as a hybrid card, requires you to play green OR white, but you don't need both<br /><br />Bant Sureblade; GW WU<br />Similar principle, you need white, but another color is a choice.<br /><br />Bant Battlemage ; GWU<br />Bant Battlemage COULD be played in monowhite, but would you ever want to? To use it, you want at least two colors, but ideally all three.<br /><br />There is some space for debate, for example whether to allow any deck to play Gathan Raiders or limit it to red, or whether have Whip-Spine Drake as "W U" or as "WU" (whether he's useful enough in monocolor). I'd usually go with the harsher requirements. Also, sunburst might be a question: how many colors do you have to play so you could be given Suncrusher? Would you want to require five-color deck for that?<br /><br />So, what do you think? If this was implemented, the only external part are the files detailing use of cards, and I would be willing to write those...Marek14noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-24450242040075040612009-09-14T23:23:59.308-07:002009-09-14T23:23:59.308-07:00I also agree that the random deck is fun, but I am...I also agree that the random deck is fun, but I am a bit concerned that it doesn't generate everything... I only ever saw monocolored cards in it.<br /><br />I think this part could do with some enhancing. Ideally, it might work like this:<br /><br />You set a number of colors set. (1-5, maybe for larger number of colors you could start with more life to compensate for awkward mana base?)<br /><br />You set a deck size. If you want random fun, why constraining yourself to 60? Also, this increases probability you get something really good, and thus the power of tutor effects (which, however, still won't be as strong as constructed).<br /><br />You generate a land base. (You COULD have a settable percentage of lands, but usually you will want to go with 1/3, I guess). Although it's called "land" base, in practice it includes every card that can generate mana without costing any, most notably Moxes, but Elvish Spirit Guide might qualify as well. I guess that what you COULD set would be how many of the slots availaible HAVE to be basic lands, i.e. if you want nonbasics to be common in the deck or rare. Maybe this would be a fixed number, maybe just probability (so the actual deck could end up with less or more). Percentage of snow-covered basics is another possibly settable number.<br />Now a land base file comes into effect. Basically, each land base card has defined where it is playable.<br /><br />For example:<br />Adarkar Wastes ; WU<br /><br />You only want to play Adarkar Wastes in a deck that plays both white and blue, since otherwise it's worse than a basic land.<br /><br />Crosis's Caldera ; UB UR BR<br />Crosis's Caldera adds three colors, so I guess it's playable in any deck that includes at least two of those.<br /><br />Mox Emerald ;<br />Mox Emerald is playable even if your deck doesn't play green, since it's acceleration.<br /><br />City of Brass ; WU WB UB UR BR BG RG RW GW GU<br />The general rule of thumb is that a land producing more than one type of mana is useful if a deck plays at least two of those. Thus, any two-or-more-color deck can include City of Brass.<br /><br />So the first parse of land base file creates a land base for the specific color combination the deck will play. Next, cards will be randomly selected from it to build the base.Marek14noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-87531740203231969782009-09-14T21:32:48.612-07:002009-09-14T21:32:48.612-07:00I have a random warband generator (same idea as a ...I have a random warband generator (same idea as a random deck) and yea it's fun!<br /><br />I also use it for automated testing by continually creating random warbands and having 2 AIs play them. Works pretty well.<br /><br />At some point I'd like to do a "sealed" type of warband generator.telengardhttps://www.blogger.com/profile/17307906143172329935noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-27631544991554103742009-09-14T16:47:42.746-07:002009-09-14T16:47:42.746-07:00You're doing a great job with this program. Ar...You're doing a great job with this program. Are you the only one working on it? I'm amazed at how much it has grown in the past couple of years.<br /><br />When I originally tried it out a couple of years ago I thought it had potential, but after I tried out the latest version a few days ago I just can't stop playing.<br /><br />I like how you've gone to scripting the cards. I played a little with Lua, and it's a lot more fun to script than to code...at least for me.<br /><br />I wish I had time to contribute. Maybe in the future. In the meantime I'll check out the forum. Keep up the good work!Karnblackhttps://www.blogger.com/profile/02854736002597442450noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-82140050176628076982009-09-14T07:05:29.977-07:002009-09-14T07:05:29.977-07:00This article isn't technical at all. I though...This article isn't technical at all. I thought about trying to do a brief overview of the important Java classes like Card, SpellAbility, and Combat. It is hard to guess which topics are interesting :)Forgehttps://www.blogger.com/profile/15838286606081721333noreply@blogger.com