Giter Site home page Giter Site logo

hearthstonesim_abandoned's People

Contributors

alarmclockcrusher avatar jasonguo0 avatar shp241 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hearthstonesim_abandoned's Issues

Bug反馈

我是从营地来的老哥,今天刚看到大佬的项目,感觉非常厉害!
不过在测试的过程中遇到了一些问题:
疑似bug:

  1. Teron Gorefiend的亡语召唤的随从好像没有+1/+1
  2. 有一次大概在6回合的时候游戏崩溃了……报错信息如下:
Traceback (most recent call last):
  File "GUI.py", line 698, in <module>
    GameGUI.run()
  File "GUI.py", line 641, in run
    self.Game.playSpell(subject, target, choice)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\Game.py", line 933, in playSpell
    spell.played(target, choice, mana, positioninHand, comment) #choice用于抉择选项,comment 用于区分是GUI环境下使用还是AI分叉
  File "F:\Desktop\hearthstone\HearthstoneSimulator\CardTypes.py", line 1425, in played
    target = self.whenEffective(target, comment, choice, posinHand)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\Classic.py", line 3960, in whenEffective
    copiedMinion = np.random.choice(minions).selfCopy(self.ID)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\CardTypes.py", line 1146, in selfCopy
    Copy.__dict__[key] = copyListDict(value, Copy)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\CardTypes.py", line 26, in copyListDict
    objCopy.append(copy.deepcopy(element))
  File "D:\Anaconda3\lib\copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "D:\Anaconda3\lib\copy.py", line 247, in _deepcopy_method
    return type(x)(x.__func__, deepcopy(x.__self__, memo))
  File "D:\Anaconda3\lib\copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "D:\Anaconda3\lib\copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "D:\Anaconda3\lib\copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "D:\Anaconda3\lib\copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "D:\Anaconda3\lib\copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "D:\Anaconda3\lib\copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "D:\Anaconda3\lib\copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "D:\Anaconda3\lib\copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "D:\Anaconda3\lib\copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "D:\Anaconda3\lib\copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "D:\Anaconda3\lib\copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "D:\Anaconda3\lib\copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "D:\Anaconda3\lib\copy.py", line 169, in deepcopy
    rv = reductor(4)
TypeError: can't pickle pygame.Surface objects
  1. 复生的随从应该在原位置重新召唤
  2. 突袭随从在没有可攻击目标之后仍然显示绿色
  3. RotnestDrake在没有可消灭目标的情况下,即使手牌有龙似乎也应该是绿色而不是黄色的
  4. 发现一个惊天大bug!换完牌之后先手就不抽牌了……
  5. 恶魔变形后的英雄技能第二次使用结束造成游戏闪退,报错信息如下:
Traceback (most recent call last):
  File "GUI.py", line 698, in <module>
    GameGUI.run()
  File "GUI.py", line 683, in run
    subject.use(item[1]) #Request to use the Hero Power, and its validity is decided later.
  File "F:\Desktop\hearthstone\HearthstoneSimulator\CardTypes.py", line 1729, in use
    self.Game.sendSignal("HeroUsedAbility", self.ID, self, self.Game.target, self.mana, "", choice)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\Game.py", line 606, in sendSignal
    trigger.trigger(signal, ID, subject, target, number, comment, choice)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\Triggers_Auras.py", line 34, in trigger
    self.effect(signal, ID, subject, target, number, comment)
  File "F:\Desktop\hearthstone\HearthstoneSimulator\Outlands.py", line 563, in effect
    if heroPowerReplaced != None:
NameError: name 'heroPowerReplaced' is not defined

然后就是卡牌名全部英文的话不太方便[捂脸] 大部分的卡都不认识,有几个怪我是拍下去之后才知道是什么的……
另外,大佬有考虑过创一个qq群吗,可以让帮助测试的老哥们方便交流。
再次对大佬表示感谢及赞叹!

请问怎么运行

不好意思就草草看了一下,好像没看到含有main之类的py文件,请问要运行哪个文件……然后怎么自定义场面这种呀

求创建个讨论群

一直想研究一下用ml开发炉石AI,但是苦于一直没有合适的模拟器,自己写工程量太大。如果有一个群讨论,一起开发研究会方便不少。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.