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
c110109d
Commit
c110109d
authored
Jan 30, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new deck
parent
01524bc5
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
608 additions
and
6 deletions
+608
-6
Decks/AI_Zoodiac.ydk
Decks/AI_Zoodiac.ydk
+59
-0
Game/AI/Decks/ZoodiacExecutor.cs
Game/AI/Decks/ZoodiacExecutor.cs
+498
-0
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+2
-1
Game/GameAI.cs
Game/GameAI.cs
+41
-3
WindBot.csproj
WindBot.csproj
+1
-0
bots.json
bots.json
+7
-2
No files found.
Decks/AI_Zoodiac.ydk
0 → 100644
View file @
c110109d
#created by ...
#main
63941210
36956512
55063751
28674152
29726552
65367484
65367484
65367484
77150143
77150143
77150143
31755044
31755044
31755044
86120751
86120751
86120751
78872731
78872731
78872731
18144506
53129443
73628505
73628505
73628505
74063034
74063034
74063034
83764718
99330325
99330325
99330325
46060017
46060017
46060017
57103969
47679935
47679935
47679935
73881652
#extra
75286621
75286621
48791583
56832966
84013237
581014
581014
11510448
11510448
41375811
41375811
48905153
48905153
85115440
85115440
!side
Game/AI/Decks/ZoodiacExecutor.cs
0 → 100644
View file @
c110109d
This diff is collapsed.
Click to expand it.
Game/AI/Enums/Floodgate.cs
View file @
c110109d
...
...
@@ -59,6 +59,7 @@
NaturiaBarkion
=
2956282
,
EvilswarmOphion
=
91279700
,
MermailAbyssgaios
=
74371660
,
AbyssDweller
=
21044178
AbyssDweller
=
21044178
,
ZoodiacDrident
=
48905153
}
}
Game/GameAI.cs
View file @
c110109d
...
...
@@ -70,6 +70,7 @@ namespace WindBot.Game
m_selector
=
null
;
m_nextSelector
=
null
;
m_option
=
-
1
;
m_yesno
=
-
1
;
m_position
=
CardPosition
.
FaceUpAttack
;
Duel
.
LastSummonPlayer
=
-
1
;
if
(
Duel
.
Player
==
0
&&
Duel
.
Phase
==
DuelPhase
.
Draw
)
...
...
@@ -446,6 +447,8 @@ namespace WindBot.Game
/// <returns>True for yes, false for no.</returns>
public
bool
OnSelectYesNo
(
int
desc
)
{
if
(
m_yesno
!=
-
1
)
return
m_yesno
>
0
;
return
Executor
.
OnSelectYesNo
(
desc
);
}
...
...
@@ -465,10 +468,12 @@ namespace WindBot.Game
private
CardSelector
m_selector
;
private
CardSelector
m_nextSelector
;
private
CardSelector
m_thirdSelector
;
private
CardPosition
m_position
=
CardPosition
.
FaceUpAttack
;
private
int
m_option
;
private
int
m_number
;
private
int
m_announce
;
private
int
m_yesno
;
private
IList
<
CardAttribute
>
m_attributes
=
new
List
<
CardAttribute
>();
private
IList
<
CardRace
>
m_races
=
new
List
<
CardRace
>();
...
...
@@ -522,17 +527,45 @@ namespace WindBot.Game
m_nextSelector
=
new
CardSelector
(
loc
);
}
public
void
SelectThirdCard
(
ClientCard
card
)
{
m_thirdSelector
=
new
CardSelector
(
card
);
}
public
void
SelectThirdCard
(
IList
<
ClientCard
>
cards
)
{
m_thirdSelector
=
new
CardSelector
(
cards
);
}
public
void
SelectThirdCard
(
int
cardId
)
{
m_thirdSelector
=
new
CardSelector
(
cardId
);
}
public
void
SelectThirdCard
(
IList
<
int
>
ids
)
{
m_thirdSelector
=
new
CardSelector
(
ids
);
}
public
void
SelectThirdCard
(
CardLocation
loc
)
{
m_thirdSelector
=
new
CardSelector
(
loc
);
}
public
CardSelector
GetSelectedCards
()
{
CardSelector
selected
=
m_selector
;
m_selector
=
null
;
if
(
m_nextSelector
!=
null
)
{
m_selector
=
m_nextSelector
;
m_nextSelector
=
null
;
if
(
m_thirdSelector
!=
null
)
{
m_nextSelector
=
m_thirdSelector
;
m_thirdSelector
=
null
;
}
}
else
m_selector
=
null
;
return
selected
;
}
...
...
@@ -582,6 +615,11 @@ namespace WindBot.Game
m_announce
=
id
;
}
public
void
SelectYesNo
(
bool
opt
)
{
m_yesno
=
opt
?
1
:
0
;
}
/// <summary>
/// Called when the AI has to declare a number.
/// </summary>
...
...
WindBot.csproj
View file @
c110109d
...
...
@@ -77,6 +77,7 @@
<Compile
Include=
"Game\AI\Decks\DoEveryThingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\OldSchoolExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\Rank5Executor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ZoodiacExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ZexalWeaponsExecutor.cs"
/>
<Compile
Include=
"Game\AI\DefaultExecutor.cs"
/>
<Compile
Include=
"Game\AI\Dialogs.cs"
/>
...
...
bots.json
View file @
c110109d
...
...
@@ -32,12 +32,17 @@
},
{
"name"
:
"复制植物"
,
"deck"
:
"
Blue-Eyes
"
,
"deck"
:
"
Zoodiac
"
,
"dialog"
:
"copy.zh-CN"
},
{
"name"
:
"复制植物"
,
"deck"
:
"Blue-Eyes"
,
"deck"
:
"Zoodiac"
,
"dialog"
:
"copy.zh-CN"
},
{
"name"
:
"复制植物"
,
"deck"
:
"Zoodiac"
,
"dialog"
:
"copy.zh-CN"
},
{
...
...
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