*Author

Offline SiluxTopic starter

  • Full Member
  • ***
  • Posts: 348
  • Reputation Power: 5
  • Silux is a Spark waiting for a buff.
  • being here since v1.16
A Java program to test rush deck https://elementscommunity.org/forum/index.php?topic=50650.msg1091122#msg1091122
« on: August 06, 2013, 09:25:04 pm »
I'm making a Java program to test how much turn takes to a deck to reach 100 or 150 damage.
It works by just input the import string, and it gives back data about how it performs.
With some work i can simulate battles against other rush decks or even fake gods.

I can't eventually finish it, because importing the behaviour of each card is really long and i will have something more important to do.
I can make cards really easy to import, without need to fiddle with code, by just writing out cards like:
stone dragon
58r
8 attack
10 life

The code will be open source under GPL3.0.

Offline artimies7

  • Hero Member
  • *****
  • Posts: 1802
  • Reputation Power: 24
  • artimies7 is a Mummy waiting to discover the path to glory.artimies7 is a Mummy waiting to discover the path to glory.artimies7 is a Mummy waiting to discover the path to glory.artimies7 is a Mummy waiting to discover the path to glory.
  • Effectively Super
  • Awards: Slice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: A Java program to test rush deck https://elementscommunity.org/forum/index.php?topic=50650.msg1091125#msg1091125
« Reply #1 on: August 06, 2013, 10:00:40 pm »
Hey, I'm not a coder much, but this has promise. Good luck!
Donuts, Noodles, or Bacon?
Whitewalleries! | Noodles, to Victory!

Offline Leodip

  • Sr. Member
  • ****
  • Posts: 786
  • Country: it
  • Reputation Power: 11
  • Leodip is taking their first peeks out of the Antlion's burrow.Leodip is taking their first peeks out of the Antlion's burrow.
  • Go home Homura, you're drunk.
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: A Java program to test rush deck https://elementscommunity.org/forum/index.php?topic=50650.msg1091126#msg1091126
« Reply #2 on: August 06, 2013, 10:43:08 pm »
I'm making a Java program to test how much turn takes to a deck to reach 100 or 150 damage.
It works by just input the import string, and it gives back data about how it performs.
With some work i can simulate battles against other rush decks or even fake gods.

I can't eventually finish it, because importing the behaviour of each card is really long and i will have something more important to do.
I can make cards really easy to import, without need to fiddle with code, by just writing out cards like:
stone dragon
58r
8 attack
10 life

The code will be open source under GPL3.0.
Was wondering, what are the real differences between this and Xeno's simulator? As long as you put the deck you want to test and an opponent with a pretty dead deck (60 pillars, or 60 high costing cards different from the mark) and extablish the number of HPs the opponent has to start from it should work the same (if not better).

Maybe I misunderstood something.

Offline Chapuz

  • Legendary Member
  • ******
  • Posts: 6081
  • Country: ar
  • Reputation Power: 72
  • Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.
  • The weird Voodoo guy
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeDeckbuilding Competition - Tower Defense WinnerSlice of Elements 9th Birthday CakeSlice of Elements 8th Birthday CakeSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeBrawl #1 Winner - Team Nyan Sharks
Re: A Java program to test rush deck https://elementscommunity.org/forum/index.php?topic=50650.msg1091132#msg1091132
« Reply #3 on: August 06, 2013, 11:09:51 pm »
Do you have the AI logic?
My Decks, Tutorial and Guides <~~~~~ Click Here ! ! !

Offline SiluxTopic starter

  • Full Member
  • ***
  • Posts: 348
  • Reputation Power: 5
  • Silux is a Spark waiting for a buff.
  • being here since v1.16
Re: A Java program to test rush deck https://elementscommunity.org/forum/index.php?topic=50650.msg1091409#msg1091409
« Reply #4 on: August 08, 2013, 10:50:46 pm »
i did forget of it^^
If i can see the code i'll be happy to collaborate and make it better!

Java is a little more fast and can take 10k tests within 25sec without crashing, but has to be downloaded.
I was going to add also a non-test based analysis, and find the perfect percentage of winning for each turn with a graph like
0 0%
...
5 24%
6 34%
7 13%
....
I can also add all these things to Xeno's tool too.

 

anything
blarg: