• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • F# support

    Discussion in 'Hearthbuddy Forum' started by macaw2000, Apr 5, 2014.

    1. macaw2000

      macaw2000 Member Legendary

      Joined:
      Oct 16, 2012
      Messages:
      109
      Likes Received:
      0
      Trophy Points:
      16
      I'd love to write the "combat routines" in F# for this one if possible. I know c# is used in the other bots but given the functional nature of this, it might be fun to do this in F#.
       
    2. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      F# isn't even supported by MS anymore. Why would you want to use a functional language over an OOP language?
       
    3. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      lisp for life.

      Question is what language can we write CR's for HB? Should be in the dev' section.

      WIMM
       
    4. Aevitas

      Aevitas Well-Known Member Staff Member Buddy Core Dev

      Joined:
      Mar 2, 2010
      Messages:
      2,307
      Likes Received:
      36
      Trophy Points:
      48
      C#. Reason it's not mentioned anywhere yet is because we haven't published the API yet. At the moment it's a bit of a maze and we want to polish it before opening it up to the public to utilize.
       
    5. macaw2000

      macaw2000 Member Legendary

      Joined:
      Oct 16, 2012
      Messages:
      109
      Likes Received:
      0
      Trophy Points:
      16
      Yeah I love C# so no complaints here! I was just thinking earlier of Hearthstone playing logic in terms of Lisp/Schema/F# type functions, given the "AI" nature of play.
       
    6. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      I am looking forward to the 'if/else if' conditional statement that runs for >9000 lines ;)

      WIMM
       
    7. AutomaticCoding

      AutomaticCoding Banned

      Joined:
      Dec 20, 2011
      Messages:
      1,091
      Likes Received:
      1
      Trophy Points:
      0
      In a situation like that, it'd probably be easier to pull all the data from a DB rather than have a huge if statement that'd be insanely slow to execute.
       
    8. Aevitas

      Aevitas Well-Known Member Staff Member Buddy Core Dev

      Joined:
      Mar 2, 2010
      Messages:
      2,307
      Likes Received:
      36
      Trophy Points:
      48
      We're running coroutines for our logic in Hearthbuddy currently, but you can use whatever you prefer. We have some other neat stuff in the pipeline, but it's too early to go into detail on that.
       
    9. AutomaticCoding

      AutomaticCoding Banned

      Joined:
      Dec 20, 2011
      Messages:
      1,091
      Likes Received:
      1
      Trophy Points:
      0
      But we like details!
       
    10. Aevitas

      Aevitas Well-Known Member Staff Member Buddy Core Dev

      Joined:
      Mar 2, 2010
      Messages:
      2,307
      Likes Received:
      36
      Trophy Points:
      48
      :) :)
       
    11. randomstraw

      randomstraw Community Developer

      Joined:
      Jul 17, 2012
      Messages:
      1,611
      Likes Received:
      10
      Trophy Points:
      38
      I want to draw pictures in paint and the bot should interprate 'em please!
       
    12. Raigeki

      Raigeki New Member

      Joined:
      Oct 6, 2012
      Messages:
      9
      Likes Received:
      0
      Trophy Points:
      0
      ^
      This ^.^
       

    Share This Page