• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Custom Deck] Silverfish AI

    Discussion in 'Archives' started by obtkamer, Jul 11, 2014.

    1. subzerok

      subzerok New Member

      Joined:
      Aug 1, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
    2. obtkamer

      obtkamer New Member

      Joined:
      May 27, 2014
      Messages:
      261
      Likes Received:
      4
      Trophy Points:
      0
      was your connection laggy? the data wasnt changed after trying to play the spell/attack with the minion (so he tried it again and again)
       
    3. obtkamer

      obtkamer New Member

      Joined:
      May 27, 2014
      Messages:
      261
      Likes Received:
      4
      Trophy Points:
      0
      no, there is no way to do that with the hrtbuddy api yet
       
    4. subzerok

      subzerok New Member

      Joined:
      Aug 1, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Perfectly fine, I am running Fiber Optic, I am Australia playing on the Americas server maybe thats why? - Without the API it runs fine.
       
    5. paperc07

      paperc07 Member

      Joined:
      Dec 16, 2011
      Messages:
      829
      Likes Received:
      9
      Trophy Points:
      18
      I had 6 minions/totems on board I drew a Azure Drake now why in the hell wouldn't he put that out there and draw a card especially when the opponent had no cards but instead he summoned a totem lol.
       

      Attached Files:

    6. neoric

      neoric New Member

      Joined:
      Jun 13, 2014
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      i notice the bot will use the card "Upgrade" almost immediately when it shows up in hand and has spare mana for it.

      Could you change that to hold on to the "Upgrade" until the bot draws a weapon?
       
    7. Xael

      Xael New Member

      Joined:
      Jul 31, 2014
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      Kudos to you for this API my friend, thanks!
       
    8. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      I have 2 Turn Calculation on and sometimes on its first calculation time will run out. Calculations with only 1 Turn also sometimes can take a really long time. Calculations need to be quicker. not sure if its a hearth buddy issue.

      With my current deck even on 1 turn simulation it can run out of time. before the bot is finished.
       
      Last edited: Aug 2, 2014
    9. Endus

      Endus Community Developer

      Joined:
      Jul 9, 2012
      Messages:
      458
      Likes Received:
      6
      Trophy Points:
      18
      Does the log say anything? (like, is it getting stuck in a loop, or just sitting there doing nothing?)
       
    10. paperc07

      paperc07 Member

      Joined:
      Dec 16, 2011
      Messages:
      829
      Likes Received:
      9
      Trophy Points:
      18
      Umm he could have cleared the board considering I couldn't finish him off, instead he decided to take out one of the minions but leave the other one, the worst part is I could have taken out his other minion and not even have lost mine, instead I didn't and he buffed him and I lost lol
       

      Attached Files:

    11. obtkamer

      obtkamer New Member

      Joined:
      May 27, 2014
      Messages:
      261
      Likes Received:
      4
      Trophy Points:
      0
      2 turn simulation is only an experimental function atm. the concept of the ai (like in chess) is to simulate every possible move you can do in your turn, give each resulted board a value and take the best one. the problem, the number of simulated boards growth exponential with the number of your possible moves.
      atm, to reduce the amount i only calculate a maximum of 50 boards for your second turn. (this calculation hast to be done for every board the ai calculates in the first turn calculation). so whether you activate the second turn sim. the compute-time will be (in the worst case) 50 times the time it would have taken for the "normal" simulation.
       
    12. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      This does make scene.

      At the moment tho. 1 turn simulation with a lot of cards in hand or cards on the bored Calculations can take to long and your turn will timeout or end before the bot is done calculating.. Loosing games.

      Edit. I saw your PM after i wrote this here are my logs I turned 2 turn sim off after the first log i think?

      View attachment UltimateLogs.zip
       
      Last edited: Aug 2, 2014
    13. Deviargeuse

      Deviargeuse New Member

      Joined:
      Aug 7, 2011
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      Is there a way to "boost" the CPU allocation to the program, for it to compute faster?
       
    14. paperc07

      paperc07 Member

      Joined:
      Dec 16, 2011
      Messages:
      829
      Likes Received:
      9
      Trophy Points:
      18
      The opponent had a 6/5 Taunt with divine shield. I had a hex in my hand, it lost a minion by breaking the divine shield and then hexed? If it was going to hex which was the right move why not do that from the beggining then use the minion to finish it off and still have it instead of losing a minion
       

      Attached Files:

    15. Denny7273

      Denny7273 New Member

      Joined:
      Jan 13, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      First of all thanks for your awesome API! Ive found some bugs and im going to report them to you in hope to help you make the Silverfish even better.

      I watched the bot play and he often missed lethal or some better plays. He won at the end but could have done it slightly better.
      The last time he played my murloc deck against a warrior, shot him down really low and had 3 minions on the board and 2 Dire Wolf Alpha in his hand. He could have placed them like this (D= Dire Wolf Alpha, M= Minions) MDMDM and killed him but instead of doing so he played 1 Wolf (MDMM) then attacked with the left minion and played the second Wolf (MD²DMM) who was useless and then attacked with the other 2 Minions.
      View attachment UILogg_2014-08-03_09-32-33.txt

      Ive found another "bug".. The bot had Sorcerers Apprentice on the field and a Mirror Image in hand while playing my Aggro Mage.
      He had 9HP left and the warrior got a weapon (5dmg) + 2 4/3 Minions on the field. He just ran the Sorcerers Apprentice in one of the 2 4/3 Minions instead of playing the Mirror Image first.
      View attachment UILogg_2014-08-03_17-21-07.txt
       
      Last edited: Aug 3, 2014
    16. Jack3ss

      Jack3ss New Member

      Joined:
      Oct 16, 2012
      Messages:
      254
      Likes Received:
      0
      Trophy Points:
      0
      but with a fast cpu i dont think this should be a problem?
      i was watching my task manager and hearthbuddy usually uses 1-5% cpu and acts really fast,
      i think you only will get problems with really old and slow pc´s?

      *edit*
      i changet it to 2 turn and it is as fast as single
      my cpu is a 2600k@4.5ghz
       
      Last edited: Aug 3, 2014
    17. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      This only happens when you have 3-4 minions on both sides of the bored or have 7-8+ cards in hand My computer also has 4.5ghz 16 gig ram

      I watch heart buddy silverfish said calculating and made a move said calculating time ran out.
      Tony asked me to submit logs for health buddy so I'm going to do that when I get home
       
    18. obtkamer

      obtkamer New Member

      Joined:
      May 27, 2014
      Messages:
      261
      Likes Received:
      4
      Trophy Points:
      0
      was typing a long text of you underestimating exponential growth but cant send it... but small example: a board with 30 possible moves (= 5 cards on hand (without targeting) + 5 minions on each side) and you perform a full search up to a deep of 5 (= look in future for 5 actions you can do (like play card a, attack with minion 1, play b, attack with 2 + use ability)) will result in aprox 24 million boards (= 30^5).
      to mutch to calculate + store. (i do a search to deep of 12).

      @ silent strange. you are sure you disabled 2 turn sim? (have to test it myself)
       
    19. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      Yea in pretty sure I did. I'm at work till late but when I get home ill do a fresh install and watch it and report my findings
       
    20. Jack3ss

      Jack3ss New Member

      Joined:
      Oct 16, 2012
      Messages:
      254
      Likes Received:
      0
      Trophy Points:
      0
      well i was watching it for some time now with a lot of cards in hands and on deck but it never struggled at all

      *edit*
      ok it is true it sometimes takes too long but only if there are really 10 cards on the plate and 5 in each hand
      strange thing is the hearthbuddy is only using 20% of the cpu
      he could be calculating much faster if he would use 100%
       
      Last edited: Aug 3, 2014

    Share This Page