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
xiaoye
windbot
Commits
e153d008
Commit
e153d008
authored
Dec 10, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AI408AExecutor.cs
parent
1e05d8ba
Pipeline
#31684
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
Game/AI/Decks/AI408AExecutor.cs
Game/AI/Decks/AI408AExecutor.cs
+16
-7
No files found.
Game/AI/Decks/AI408AExecutor.cs
View file @
e153d008
...
@@ -157,11 +157,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -157,11 +157,6 @@ namespace WindBot.Game.AI.Decks
List
<
ClientCard
>
res
=
cards
.
Where
(
card
=>
card
!=
null
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
Attack
>
card
.
Attack
)).
ToList
();
List
<
ClientCard
>
res
=
cards
.
Where
(
card
=>
card
!=
null
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
Attack
>
card
.
Attack
)).
ToList
();
return
Util
.
CheckSelectCount
(
res
,
cards
,
min
,
max
);
return
Util
.
CheckSelectCount
(
res
,
cards
,
min
,
max
);
}
}
if
(
currentSolvingChain
.
IsCode
(
new
[]
{
60229110
,
71044499
}))
{
List
<
ClientCard
>
res
=
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
).
ToList
();
return
Util
.
CheckSelectCount
(
res
,
cards
,
min
,
max
);
}
if
(
currentSolvingChain
.
IsCode
(
32807846
))
if
(
currentSolvingChain
.
IsCode
(
32807846
))
{
{
if
((
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
37043180
,
70074904
}))
&&
Bot
.
GetMonsterCount
()
>=
Enemy
.
GetMonsterCount
())
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
23205979
,
31305911
})))
if
((
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
37043180
,
70074904
}))
&&
Bot
.
GetMonsterCount
()
>=
Enemy
.
GetMonsterCount
())
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
23205979
,
31305911
})))
...
@@ -172,6 +167,20 @@ namespace WindBot.Game.AI.Decks
...
@@ -172,6 +167,20 @@ namespace WindBot.Game.AI.Decks
}
}
switch
(
currentSolvingChain
.
Id
)
switch
(
currentSolvingChain
.
Id
)
{
{
case
60229110
:
{
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
()))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsFacedown
()).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
70828912
,
97077563
})))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
70828912
,
97077563
})).
ToList
(),
cards
,
min
,
max
);
break
;
}
case
71044499
:
{
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
).
ToList
(),
cards
,
min
,
max
);
}
case
27174286
:
case
27174286
:
{
{
return
Util
.
CheckSelectCount
(
cards
,
cards
,
max
,
max
);
return
Util
.
CheckSelectCount
(
cards
,
cards
,
max
,
max
);
...
@@ -480,7 +489,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -480,7 +489,7 @@ namespace WindBot.Game.AI.Decks
g
.
Sort
(
CardContainer
.
CompareCardAttack
);
g
.
Sort
(
CardContainer
.
CompareCardAttack
);
int
atk
=
g
[
0
].
Attack
;
int
atk
=
g
[
0
].
Attack
;
if
(
Bot
.
LifePoints
>
2000
&&
g
[
0
].
IsCode
(
79575620
))
atk
=
g
[
1
].
Attack
;
if
(
Bot
.
LifePoints
>
2000
&&
g
[
0
].
IsCode
(
79575620
))
atk
=
g
[
1
].
Attack
;
if
(
Enemy
.
LifePoints
>
Util
.
GetBestAttack
(
Bot
)
&&
Enemy
.
LifePoints
-
Util
.
GetBestAttack
(
Bot
)
<=
2400
-
atk
&&
Enemy
.
GetMonsterCount
()
==
0
&&
!
GetZoneCards
(
CardLocation
.
Hand
,
Bot
).
Any
(
c
=>
c
!=
null
&&
c
.
Level
<
5
&&
c
.
HasType
(
CardType
.
Monster
)))
if
(
Enemy
.
LifePoints
>
Util
.
GetBestAttack
(
Bot
)
&&
Enemy
.
LifePoints
-
Util
.
GetBestAttack
(
Bot
)
<=
2400
-
atk
&&
Enemy
.
GetMonsterCount
()
==
0
&&
!
GetZoneCards
(
CardLocation
.
Hand
,
Bot
).
Any
(
c
=>
c
!=
null
&&
c
.
Level
<
5
&&
c
.
HasType
(
CardType
.
Monster
))
&&
Duel
.
MainPhase
.
CanBattlePhase
&&
GetZoneCards
(
CardLocation
.
SpellZone
,
Bot
).
Any
(
c
=>
c
!=
null
&&
!
c
.
IsShouldNotBeTarget
()
&&
!
c
.
IsFaceup
())
)
{
{
chk_release_summon
=
true
;
chk_release_summon
=
true
;
return
true
;
return
true
;
...
@@ -493,7 +502,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -493,7 +502,7 @@ namespace WindBot.Game.AI.Decks
{
{
return
true
;
return
true
;
}
}
if
(
Enemy
.
LifePoints
>
Util
.
GetBestAttack
(
Bot
)
&&
Enemy
.
LifePoints
-
Util
.
GetBestAttack
(
Bot
)
<=
400
&&
Enemy
.
GetMonsterCount
()
==
0
&&
!
GetZoneCards
(
CardLocation
.
Hand
,
Bot
).
Any
(
c
=>
c
!=
null
&&
c
.
Level
<
5
&&
c
.
HasType
(
CardType
.
Monster
)))
if
(
Enemy
.
LifePoints
>
Util
.
GetBestAttack
(
Bot
)
&&
Enemy
.
LifePoints
-
Util
.
GetBestAttack
(
Bot
)
<=
400
&&
Enemy
.
GetMonsterCount
()
==
0
&&
!
GetZoneCards
(
CardLocation
.
Hand
,
Bot
).
Any
(
c
=>
c
!=
null
&&
c
.
Level
<
5
&&
c
.
HasType
(
CardType
.
Monster
))
&&
Duel
.
MainPhase
.
CanBattlePhase
)
{
{
return
true
;
return
true
;
}
}
...
...
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