Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
windbot
Commits
cfdfd02a
Commit
cfdfd02a
authored
Sep 28, 2021
by
苍蓝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f386dc0e
Pipeline
#5912
failed with stage
in 2 minutes and 14 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
37 deletions
+41
-37
App.config
App.config
+1
-1
BotWrapper/BotWrapper.csproj
BotWrapper/BotWrapper.csproj
+3
-1
BotWrapper/app.config
BotWrapper/app.config
+1
-1
Decks/AI_DinocarriageDynarmix.ydk
Decks/AI_DinocarriageDynarmix.ydk
+2
-1
Game/AI/Decks/MokeyMokeyExecutor.cs
Game/AI/Decks/MokeyMokeyExecutor.cs
+8
-8
Game/AI/Decks/MokeyMokeyKingExecutor.cs
Game/AI/Decks/MokeyMokeyKingExecutor.cs
+9
-10
Game/AI/Decks/SaikyoBattleFlagExecutor.cs
Game/AI/Decks/SaikyoBattleFlagExecutor.cs
+11
-10
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+1
-2
WindBot.csproj
WindBot.csproj
+5
-3
No files found.
App.config
View file @
cfdfd02a
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
0
"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
6.1
"
/>
</
startup
>
</
configuration
>
BotWrapper/BotWrapper.csproj
View file @
cfdfd02a
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
BotWrapper
</RootNamespace>
<AssemblyName>
Bot
</AssemblyName>
<TargetFrameworkVersion>
v4.
0
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.
6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<TargetFrameworkProfile
/>
</PropertyGroup>
...
...
@@ -22,6 +22,7 @@
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|x86'"
>
<PlatformTarget>
x86
</PlatformTarget>
...
...
@@ -31,6 +32,7 @@
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject>
BotWrapper.BotWrapper
</StartupObject>
...
...
BotWrapper/app.config
View file @
cfdfd02a
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
><
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
0
"
/></
startup
></
configuration
>
<
startup
><
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
6.1
"
/></
startup
></
configuration
>
Decks/AI_DinocarriageDynarmix.ydk
View file @
cfdfd02a
...
...
@@ -33,12 +33,13 @@
120151018
120151015
120151015
120151017
120151017
120151017
120151016
120151020
120151020
120151020
120151019
#extra
!side
\ No newline at end of file
Game/AI/Decks/MokeyMokeyExecutor.cs
View file @
cfdfd02a
...
...
@@ -40,13 +40,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
七星道法师
,
七星道法师
Effect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
对死者的供奉
,
死供
Eff
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
青眼白龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
破坏之剑士
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
恶魔召唤
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
连击龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
雅灭鲁拉
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
黑魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
真红眼黑龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
青眼白龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
破坏之剑士
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
恶魔召唤
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
连击龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
雅灭鲁拉
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
黑魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
真红眼黑龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
七星道魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
人造人
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
神秘庄家
);
...
...
@@ -141,7 +141,7 @@ namespace WindBot.Game.AI.Decks
{
return
true
;
}
else
if
(
Bot
.
HasInHand
(
new
[]
{
else
if
(
Bot
.
HasInHand
OrHasInMonstersZone
(
new
[]
{
CardId
.
七星道魔术师
,
CardId
.
连击龙
,
CardId
.
青眼白龙
,
...
...
Game/AI/Decks/MokeyMokeyKingExecutor.cs
View file @
cfdfd02a
...
...
@@ -46,13 +46,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
七星道法师
,
七星道法师
Effect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
对死者的供奉
,
死供
Eff
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
青眼白龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
破坏之剑士
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
恶魔召唤
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
连击龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
雅灭鲁拉
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
黑魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
真红眼黑龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
青眼白龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
破坏之剑士
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
恶魔召唤
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
连击龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
雅灭鲁拉
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
黑魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
OrSet
,
CardId
.
真红眼黑龙
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
七星道魔术师
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
人造人
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
神秘庄家
);
...
...
@@ -65,12 +65,11 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
凤凰龙
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
凤凰龙
,
凤凰龙
summon
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
凤凰龙
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
火星心少女
,
Monsterset
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
七星道法师
,
Monsterset
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
耳语妖精
,
Monsterset
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
七星道法师
);
AddExecutor
(
ExecutorType
.
SummonOrSet
,
DefaultMonsterSummon
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultMonsterRepos
);
AddExecutor
(
ExecutorType
.
SpellSet
);
...
...
@@ -146,7 +145,7 @@ namespace WindBot.Game.AI.Decks
{
return
true
;
}
else
if
(
Bot
.
HasInHand
(
new
[]
{
else
if
(
Bot
.
HasInHand
OrHasInMonstersZone
(
new
[]
{
CardId
.
七星道魔术师
,
CardId
.
连击龙
,
CardId
.
青眼白龙
,
...
...
Game/AI/Decks/SaikyoBattleFlagExecutor.cs
View file @
cfdfd02a
...
...
@@ -162,8 +162,10 @@ namespace WindBot.Game.AI.Decks
private
bool
DefaultDoubleSummon
()
{
if
(!
DoubleTribute
&&
Bot
.
HasInMonstersZone
(
CardId
.
双角兽
))
AI
.
SelectCard
(
CardId
.
双角兽
);
{
AI
.
SelectCard
(
CardId
.
双角兽
);
return
true
;
}
return
false
;
}
private
bool
左迁
1
Effect
()
{
...
...
@@ -288,17 +290,17 @@ namespace WindBot.Game.AI.Decks
{
foreach
(
ClientCard
mon
in
Enemy
.
GetMonsters
())
if
(
mon
.
Level
>=
9
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
else
if
(
mon
.
Level
>=
8
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
else
if
(
mon
.
Level
>=
6
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
else
if
(
mon
.
Level
>=
4
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
else
if
(
mon
.
Level
>=
2
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
else
if
(
mon
.
Level
>=
1
)
AI
.
Select
Next
Card
(
mon
);
AI
.
SelectCard
(
mon
);
return
true
;
}
private
bool
突击坦克
summon
()
...
...
@@ -369,9 +371,8 @@ namespace WindBot.Game.AI.Decks
}
private
bool
瞄准鹰
Effect
()
{
//ClientCard target = Util.GetWorstBotMonster();
//if (target != null) AI.SelectCard(target);
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
Level
>=
7
)
<=
1
)
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
Level
>=
7
)
<=
1
&&
Bot
.
HasInHand
(
new
[]
{
CardId
.
最强战旗
,
CardId
.
钢机神
,
CardId
.
恶德
,
CardId
.
旗兽
,
CardId
.
社员
}))
{
AI
.
SelectCard
(
CardId
.
瞄准鹰
,
CardId
.
突击坦克
,
CardId
.
成金恐龙王
,
CardId
.
社员
,
CardId
.
旗兽
);
AI
.
SelectNextCard
(
CardId
.
瞄准鹰
,
CardId
.
突击坦克
,
CardId
.
成金恐龙王
,
CardId
.
社员
,
CardId
.
旗兽
);
...
...
Game/AI/DefaultExecutor.cs
View file @
cfdfd02a
...
...
@@ -704,8 +704,7 @@ namespace WindBot.Game.AI
{
ClientCard
tributeCard
=
Bot
.
MonsterZone
[
j
];
if
(
tributeCard
==
null
)
continue
;
// if (tributeCard.GetDefensePower() +400 < Card.Attack)
if
((
tributeCard
.
Level
+
1
)
<
Card
.
Level
)
if
(
tributeCard
.
GetDefensePower
()
<
(
Card
.
Attack
-
400
))
tributecount
--;
}
return
tributecount
<=
0
;
...
...
WindBot.csproj
View file @
cfdfd02a
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
WindBot
</RootNamespace>
<AssemblyName>
WindBot
</AssemblyName>
<TargetFrameworkVersion>
v4.
0
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.
6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<TargetFrameworkProfile
/>
</PropertyGroup>
...
...
@@ -21,6 +21,7 @@
<PlatformTarget>
x86
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x86'"
>
<OutputPath>
bin\Release\
</OutputPath>
...
...
@@ -30,12 +31,14 @@
<PlatformTarget>
x86
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject
/>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>
WindBot.ico
</ApplicationIcon>
<ApplicationIcon>
</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
...
...
@@ -154,7 +157,6 @@
<None
Include=
"App.config"
/>
<None
Include=
"Dialogs\rd-c.json"
/>
<None
Include=
"Dialogs\rd-d.json"
/>
<None
Include=
"Dialogs\rd1.json"
/>
<None
Include=
"sqlite3.dll"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment