noHero123/silverfish

https://github.com/noHero123/silverfish/blob/master/HrtBddy/instructions.txt

How to install:

(- make a copy of the original defaultroutine-folder (but don save it in routines folder))

- delete the DefaultRoutine folder in Hearthbuddy/Routines

- extract the stuff inside the DefaultRoutine_nH.zip to that Hearthbuddy/Routines folder
(if you did it correctly you will have a Hearthbuddy/Routines/DefaultRoutine/Silverfish - folder)

https://github.com/noHero123/silverfish/blob/master/HrtBddy/DefaultRoutine_nH.zip

如何配置silverfish

https://hearthranger.fandom.com/wiki/Configure_Silverfish

Running

When starting the bot a second window appears with detailed infomation about the silver.dll task. Doublecheck the version at the first line of the output.

Silverfish now uses it's default settings and basic logic for mulligan and combo:

It tries to mulligan low mana cards and plays basic combos that have a high board value.

You can help Silverfish SE to understand your deck by adding custom deck settings.txt, _combo.txt, _discovery.txt and _mulligan.txt.

You'll find more infos about this later.

Configuration

Silverfish can be configured generally but it's highly recommendet to use different configuration files for each of your decks.

Therefore you have to create subfolders corresponding to the deck title within your HearthRanger\ExternBot\silverfish\Data\*CLASS* folder.

For example settings for your "Jade Aggro Shaman" should be in this folder:

HearthRanger\ExternBot\silverfish\Shaman\Jade Aggro Shaman

If it does not exists Silverfish tries basic Shaman configuration from

HearthRanger\ExternBot\silverfish\Shaman

That way you might have general settings for all of your shaman decks.

可以用职业的通用配置,以及针对特定卡组的配置

Deck Settings

The settings.txt should have at least the first two options.

Every missing option is read from settings.txt in your Silverfish directory.

Deck architype

behave = control;

Select the behavior of the A.I.:

  • control - Used mostly, this focuses on boardcontroll, clearing the board as best it can before going face.
  • rush - Will try to kill only the strong enemy minions on the board or when the oponent has more then 4 minions. But it will hit face more often then the previous 2
  • face - This mode will just go face unless there is a taunt or a few other very specific threats.
  • mana - Allmost the same as "Control" but tries to not "over"-damaging a minion to kill it (i.e. not killing a 1/1 with a 7/8) (This mode is in testing phase)
enfacehp = 15;

The amount of health the opponent needs to have before your hero attacks the enemy directly with a weapon. Examples for different deck architypes:

  • Face: 30 - Straight to face no holding back
  • Aggro: 29 - Allows for initial board control
  • Tempo: 20 - Board control until stable
  • Mid-Range: 15 - Full board control
  • Control: 15 - Full board control

Play around...

playarround = false;

Should Silverfish try to play around AoE spells.

This affects the amount of your minions on the board and might also reduce your winrate. (Typo is also in the source code, don't try "playaround")

playaroundprob = 50;

Probability where the enemy plays the AoE spell but your minions are forced to survive

playaroundprob2 = 80;

Probability where the enemy plays the AoE spell and your minions can die

useSecretsPlayArround = false;

Try to play around enemy secrets. Like play around AoE this might also reduce your winrate since some plays might be to slow to win the game.

Calculations

maxwide = 5000;

Out of all possbile boards this number boards is taken to the next level of calculations where another move may be added to them.

The more boards are calculated the higher the chance to make a really smart play.

On the other hand, this adds a lot a calculation and maybe your CPU might be overextended on complex boards with many minions.If roping happens to often, reduce the value.

On very high end computers values above 10.000 might be possible, 5.000 should work on most desktop pcs flawlessly.

twotsamount = 1000;

Number of boards where the first enemy turn is simulated. This should be around 20% of maxwide.

simEnemySecondTurn = true;

This sets whether Silverish should calculate the secend enemy turn as well.

That's a total of 4 turn calculated: your current turn, enemys turn, your possible next turn, enemy next turn.

enemyTurnMaxWide = 40;

Boards calculated in enemy first turn in first AI step. Around 10-20% of enemyTurnMaxWideSecondTime but lower or equal to enemySecondTurnMaxWide)

enemyTurnMaxWideSecondTime = 200;

Boards calculated in enemys-first-turn BUT in the second AI step (higher than enemyTurnMaxWide)

enemySecondTurnMaxWide = 40;

Number of enemy boards calculated in enemys second TURN. Around 10-20% of enemyTurnMaxWideSecondTime. (This might have been removed?)

nextTurnDeep = 6;

Maximum deep-lvls (total moves) in your second turn (recommended = dont touch this)

nextTurnMaxWide = 20;

Maximum boards calculated in one second turn deep-lvl

nextTurnTotalBoards = 200;

Maximum boards calculated in second turn simulation. Around 20% of twotsamount.

alpha = 50;

Weight in % of your 2nd turn vs your 1st (0<= alpha <= 100) eg. 30 = 30% 2nd turn result + 70% first turn result

simulatePlacement = true;

Simulate all placements for Direwolf Alpha, Flametongue Totem or Defender of Argus

Combo

Discovery

Mulligan

General Settings

useExternalProcess = true;

use silver.exe for calculations, a lot faster than turning it off (recommended = true)

concedeOnBadBoard = false;

Concede if the enemy board is too good. It's currently not recommended to use this options since it miscalculates certain situations and might give up when there is still hope.

concedeOnBoardValue = -900

concedeOnBadBoard will trigger if our best board is lower value than this (recommended = dont touch this)

speed = false;

Set this true to support sending multiple actions to bot (currently buggy so forced false)

useNetwork = false;

Use networking to communicate with silver.exe instead of a file (experimental, likely to fail after some time)

netAddress = 127.0.0.1;

network address where silver.exe is running (127.0.0.1 = this computer)

tcpPort = 14804;

tcp port to connect on

SilverFish的更多相关文章

  1. 用单元测试来调试SilverFish AI

    [TestFixture] public class AiTest { [Test] public void Test() { Settings.Instance.LogFolderPath = @& ...

  2. 在HearthRanger中使用Silverfish

    I'm new here and have never used this bot before. But a few days ago I tried it and I liked it :) I ...

  3. 用git difff 生成补丁

    http://stackoverflow.com/questions/1191282/how-to-see-the-changes-between-two-commits-without-commit ...

  4. HearthBuddy中的class276中的地址对应

    2019年09月的 intptr_0 = method_18("mono.dll"); intptr_31 = intptr_0 + 522030; intptr_28 = int ...

  5. HearthBuddy Ai 调试实战2 在使用海巨人的时候,少召唤了一个图腾(费用是对的)

    问题 游戏面板 8是青玉之爪13是海巨人17是恐狼前锋 64是萨满 66是圣骑士63,99,46,是微型木乃伊[其中99和46都是2血3攻,63是2血1攻]57是鱼人木乃伊 微型木乃伊 "L ...

  6. HearthBuddy 召唤随从的问题

    代码如下,在SilverFish\SilverFish\ai\Playfield.cs文件中 public void callKid(CardDB.Card c, int zonepos, bool ...

  7. HearthBuddy Ai调试实战1-->出牌的时候,少召唤了图腾就结束回合

    期望通过ai的调试,来搞明白出牌的逻辑. 55是投火无面者63是恐狼前锋34是风怒36是自动漩涡打击装置13是空灵召唤者, "LocStringZhCn": "<b ...

  8. HearthBuddy炉石兄弟 格雷迈恩

    getDecks(); 设置 private void getDecks() { Dictionary<string, int> tmpDeck = new Dictionary<s ...

  9. HearthBuddy炉石兄弟 如何调试ai

    Sepefeets's update to botmaker's Silverfish AI This AI is a Custom Class for Hearthranger and Hearth ...

随机推荐

  1. Linux I2C核心、总线和设备驱动

    目录 更新记录 一.Linux I2C 体系结构 1.1 Linux I2C 体系结构的组成部分 1.2 内核源码文件 1.3 重要的数据结构 二.Linux I2C 核心 2.1 流程 2.2 主要 ...

  2. Redis和MemCache静态Map做缓存区别

    本地缓存和分布式缓存 本地缓存:使用自带的map或者guava实现的是本地缓存,最主要的特点是轻量以及快速,生命周期随着jvm的销毁而结束,并且在多实例的情况下,每个实例都需要各自保存一份缓存,缓存不 ...

  3. 【SpringBoot】Web开发

    一.简介 1.1 引入SpringBoot模块 1.2 SpringBoot对静态资源的映射规则 二.模版引擎 2.1 简介 2.2 引入thymeleaf 2.3 Thymeleaf使用 一.简介 ...

  4. Centos安装MySQL5.6并重置密码

    数据库配置 如果用的是自带的sqllite那么数据库就可以不动 安装MySQL5.6数据库 这里强烈建议用使用5.6, 5.7版本的数据库遇见了很多BUG 安装MySQL wget http://de ...

  5. 了解认识asp.net运行机制

    asp.net  运行机制 下面了解认识httpModule 要创建一个httpModule类 using System;using System.Collections.Generic;using ...

  6. web开发:web前端初识

    一.前端三剑客 二.编辑器 三.第一个页面 四.基本标签 五.标签分类 一.前端三剑客 html:完成页面架构的搭建 css:完成页面样式布局 js:完成页面功能 二.编辑器 插件: 插件管理器 ct ...

  7. PAT Basic 1064 朋友数 (20 分)

    如果两个整数各位数字的和是一样的,则被称为是“朋友数”,而那个公共的和就是它们的“朋友证号”.例如 123 和 51 就是朋友数,因为 1+2+3 = 5+1 = 6,而 6 就是它们的朋友证号.给定 ...

  8. P1361 小M的作物 最小割理解

    如果没有组合效益的存在 我们直接每个点两部分的最大值即可 换成网络流模型来看 即把S点看作是A田 把T点看作是B田 每种作物看作一个点 分别连边(S,i,A[i]) (i,T,B[i]) 最后图中所有 ...

  9. Raid0、Raid0+1、Raid1、Raid5四者的区别

    RAID,可以把硬盘整合成一个大磁盘,还可以在大磁盘上再分区,放数据还有一个大功能,多块盘放在一起可以有冗余(备份)RAID整合方式有很多,常用的:0 1 5 10 Raid0Raid0是所有raid ...

  10. run zabbix with docker

    #!/bin/bashdocker run --name some-zabbix-server-mysql -p 10051:10051 --net=host -e DB_SERVER_HOST=&q ...