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
List
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
Tang Xinwei
windbot
Commits
54f91d96
Commit
54f91d96
authored
Feb 07, 2023
by
YSPplayer
Committed by
mercury233
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bot Tearlaments (#158)
parent
e062a1ec
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2595 additions
and
0 deletions
+2595
-0
Decks/AI_Tearlaments.ydk
Decks/AI_Tearlaments.ydk
+59
-0
Game/AI/Decks/KashtiraExecutor.cs
Game/AI/Decks/KashtiraExecutor.cs
+7
-0
Game/AI/Decks/TearlamentsExecutor.cs
Game/AI/Decks/TearlamentsExecutor.cs
+2516
-0
Game/AI/Decks/ThunderDragonExecutor.cs
Game/AI/Decks/ThunderDragonExecutor.cs
+7
-0
Game/AI/Executor.cs
Game/AI/Executor.cs
+4
-0
Game/GameAI.cs
Game/GameAI.cs
+1
-0
WindBot.csproj
WindBot.csproj
+1
-0
No files found.
Decks/AI_Tearlaments.ydk
0 → 100644
View file @
54f91d96
#created by ...
#main
3717252
77723643
572850
572850
572850
73956664
73956664
25926710
25926710
25926710
99937011
99937011
99937011
62320425
62320425
62320425
63542003
63542003
97518132
37961969
37961969
37961969
74078255
74078255
74078255
92919429
92919429
92919429
17266660
17266660
17266660
21074344
21074344
21074344
40177746
6767771
77103950
77103950
74920585
74920585
#extra
28226490
84330567
69946549
92731385
92731385
94977269
80532587
84815190
33158448
21044178
98127546
21887175
38342335
27381364
65741786
!side
Game/AI/Decks/KashtiraExecutor.cs
View file @
54f91d96
...
@@ -142,6 +142,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -142,6 +142,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
,
SpellSet
);
AddExecutor
(
ExecutorType
.
SpellSet
,
SpellSet
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultRepos
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultRepos
);
}
}
public
override
bool
OnSelectHand
()
{
// go first
return
true
;
}
public
override
void
OnNewTurn
()
public
override
void
OnNewTurn
()
{
{
if
(
pre_link_mode
<
0
)
pre_link_mode
=
Program
.
Rand
.
Next
(
2
);
if
(
pre_link_mode
<
0
)
pre_link_mode
=
Program
.
Rand
.
Next
(
2
);
...
...
Game/AI/Decks/TearlamentsExecutor.cs
0 → 100644
View file @
54f91d96
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Game/AI/Decks/ThunderDragonExecutor.cs
View file @
54f91d96
...
@@ -248,6 +248,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -248,6 +248,13 @@ namespace WindBot.Game.AI.Decks
}
}
}
}
#
endregion
#
endregion
public
override
bool
OnSelectHand
()
{
// go first
return
true
;
}
public
override
void
OnNewTurn
()
public
override
void
OnNewTurn
()
{
{
handActivated
=
false
;
handActivated
=
false
;
...
...
Game/AI/Executor.cs
View file @
54f91d96
...
@@ -165,6 +165,10 @@ namespace WindBot.Game.AI
...
@@ -165,6 +165,10 @@ namespace WindBot.Game.AI
// For overriding
// For overriding
return
null
;
return
null
;
}
}
public
virtual
void
OnSelectChain
(
IList
<
ClientCard
>
cards
)
{
return
;
}
public
virtual
bool
OnSelectYesNo
(
int
desc
)
public
virtual
bool
OnSelectYesNo
(
int
desc
)
{
{
...
...
Game/GameAI.cs
View file @
54f91d96
...
@@ -304,6 +304,7 @@ namespace WindBot.Game
...
@@ -304,6 +304,7 @@ namespace WindBot.Game
/// <returns>Index of the activated card or -1.</returns>
/// <returns>Index of the activated card or -1.</returns>
public
int
OnSelectChain
(
IList
<
ClientCard
>
cards
,
IList
<
int
>
descs
,
bool
forced
)
public
int
OnSelectChain
(
IList
<
ClientCard
>
cards
,
IList
<
int
>
descs
,
bool
forced
)
{
{
Executor
.
OnSelectChain
(
cards
);
foreach
(
CardExecutor
exec
in
Executor
.
Executors
)
foreach
(
CardExecutor
exec
in
Executor
.
Executors
)
{
{
for
(
int
i
=
0
;
i
<
cards
.
Count
;
++
i
)
for
(
int
i
=
0
;
i
<
cards
.
Count
;
++
i
)
...
...
WindBot.csproj
View file @
54f91d96
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
<Compile
Include=
"Game\AI\Decks\SkyStrikerExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\SkyStrikerExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyKingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyKingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\TearlamentsExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ThunderDragonExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ThunderDragonExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\TimeThiefExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\TimeThiefExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ToadallyAwesomeExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ToadallyAwesomeExecutor.cs"
/>
...
...
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