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
7a3fc306
Commit
7a3fc306
authored
Apr 29, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
13d382d4
3bb0c439
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1339 additions
and
4 deletions
+1339
-4
Decks/AI_Salamangreat.ydk
Decks/AI_Salamangreat.ydk
+60
-0
Game/AI/CardContainer.cs
Game/AI/CardContainer.cs
+9
-0
Game/AI/Decks/SalamangreatExecutor.cs
Game/AI/Decks/SalamangreatExecutor.cs
+1264
-0
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+1
-1
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+2
-1
Game/ClientField.cs
Game/ClientField.cs
+2
-2
WindBot.csproj
WindBot.csproj
+1
-0
No files found.
Decks/AI_Salamangreat.ydk
0 → 100644
View file @
7a3fc306
#created by ygopro2
#main
97268402
97268402
97268402
94620082
94620082
94620082
26889158
26889158
26889158
89662401
14558127
14558127
20618081
56003780
52277807
52277807
52277807
23434538
23434538
23434538
16188701
16188701
16188701
52155219
52155219
52155219
24224830
24224830
24224830
81439174
18144507
1295111
14934922
51339637
51339637
10045474
10045474
10045474
41420027
41420027
#extra
6983839
87327776
87327776
87871125
87871125
87871125
31833038
14812471
14812471
14812471
41463182
41463182
48815792
2857636
85289965
!side
64178424
Game/AI/CardContainer.cs
View file @
7a3fc306
...
...
@@ -16,6 +16,15 @@ namespace WindBot.Game.AI
return
1
;
}
public
static
int
CompareCardLevel
(
ClientCard
cardA
,
ClientCard
cardB
)
{
if
(
cardA
.
Level
<
cardB
.
Level
)
return
-
1
;
if
(
cardA
.
Level
==
cardB
.
Level
)
return
0
;
return
1
;
}
public
static
int
CompareDefensePower
(
ClientCard
cardA
,
ClientCard
cardB
)
{
if
(
cardA
==
null
&&
cardB
==
null
)
...
...
Game/AI/Decks/SalamangreatExecutor.cs
0 → 100644
View file @
7a3fc306
This diff is collapsed.
Click to expand it.
Game/AI/DefaultExecutor.cs
View file @
7a3fc306
...
...
@@ -261,7 +261,7 @@ namespace WindBot.Game.AI
if
(
Duel
.
Player
==
0
)
selected
=
spells
.
FirstOrDefault
(
card
=>
card
.
IsFacedown
());
if
(
Duel
.
Player
==
1
)
selected
=
spells
.
FirstOrDefault
(
card
=>
card
.
HasType
(
CardType
.
Continuous
)
||
card
.
HasType
(
CardType
.
Equip
));
selected
=
spells
.
FirstOrDefault
(
card
=>
card
.
HasType
(
CardType
.
Continuous
)
||
card
.
HasType
(
CardType
.
Equip
)
||
card
.
HasType
(
CardType
.
Field
)
);
}
if
(
selected
==
null
)
...
...
Game/AI/Enums/Floodgate.cs
View file @
7a3fc306
...
...
@@ -80,6 +80,7 @@
CyberDragonInfinity
=
10443957
,
ImperialCustom
=
9995766
,
InspectorBoarder
=
15397015
,
Mashoudou
=
76375976
Mashoudou
=
76375976
,
EternalSoul
=
48680970
}
}
Game/ClientField.cs
View file @
7a3fc306
...
...
@@ -150,12 +150,12 @@ namespace WindBot.Game
public
List
<
ClientCard
>
GetMonstersInExtraZone
()
{
return
GetMonsters
().
Where
(
(
card
,
i
)
=>
i
>=
5
).
ToList
();
return
GetMonsters
().
Where
(
card
=>
card
.
Sequence
>=
5
).
ToList
();
}
public
List
<
ClientCard
>
GetMonstersInMainZone
()
{
return
GetMonsters
().
Where
(
(
card
,
i
)
=>
i
<
5
).
ToList
();
return
GetMonsters
().
Where
(
card
=>
card
.
Sequence
<
5
).
ToList
();
}
public
ClientCard
GetFieldSpellCard
()
...
...
WindBot.csproj
View file @
7a3fc306
...
...
@@ -68,6 +68,7 @@
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\Decks\AltergeistExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\SalamangreatExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\CyberDragonExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\DarkMagicianExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\OrcustExecutor.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