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
alstroemeria-silentlove
windbot
Commits
0542a595
Commit
0542a595
authored
Sep 30, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
66d208f0
87e802b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
+4
-1
Game/AI/Decks/WitchcraftExecutor.cs
Game/AI/Decks/WitchcraftExecutor.cs
+9
-1
README.md
README.md
+5
-0
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
View file @
0542a595
...
...
@@ -230,6 +230,9 @@ namespace WindBot.Game.AI.Decks
}
private
bool
UnendingNightmareeff
()
{
if
(
Card
.
IsDisabled
()){
return
false
;
}
ClientCard
card
=
null
;
foreach
(
ClientCard
check
in
Enemy
.
GetSpells
())
{
...
...
@@ -724,4 +727,4 @@ namespace WindBot.Game.AI.Decks
return
true
;
}
}
}
\ No newline at end of file
}
Game/AI/Decks/WitchcraftExecutor.cs
View file @
0542a595
...
...
@@ -197,6 +197,7 @@ namespace WindBot.Game.AI.Decks
bool
MagicianRightHand_used
=
false
;
ClientCard
MagiciansLeftHand_negate
=
null
;
ClientCard
MagicianRightHand_negate
=
null
;
int
PSYOmega_count
=
0
;
// go first
public
override
bool
OnSelectHand
()
...
...
@@ -282,7 +283,8 @@ namespace WindBot.Game.AI.Decks
FirstCheckSS
.
Clear
();
UseSSEffect
.
Clear
();
ActivatedCards
.
Clear
();
// CalledbytheGrave刷新
int
PSYOmega_count
=
0
;
// CalledbytheGrave refrest
List
<
int
>
key_list
=
CalledbytheGraveCount
.
Keys
.
ToList
();
foreach
(
int
dic
in
key_list
)
{
...
...
@@ -2501,15 +2503,20 @@ namespace WindBot.Game.AI.Decks
// recycle from grave
if
(
Card
.
Location
==
CardLocation
.
Grave
)
{
if
(
PSYOmega_count
>=
5
){
return
false
;
}
List
<
ClientCard
>
enemy_danger
=
CheckDangerousCardinEnemyGrave
();
if
(
enemy_danger
.
Count
>
0
)
{
AI
.
SelectCard
(
enemy_danger
);
PSYOmega_count
++;
return
true
;
}
if
(!
Bot
.
HasInHandOrInSpellZoneOrInGraveyard
(
CardId
.
Holiday
)
&&
Bot
.
HasInGraveyard
(
important_witchcraft
))
{
AI
.
SelectCard
(
important_witchcraft
);
PSYOmega_count
++;
return
true
;
}
if
(
CheckProblematicCards
()
==
null
)
...
...
@@ -2518,6 +2525,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
MaxxC
,
CardId
.
AshBlossom_JoyousSpring
,
CardId
.
MagicianRightHand
,
CardId
.
MagiciansLeftHand
,
CardId
.
MagiciansRestage
,
CardId
.
Patronus
,
CardId
.
LightningStorm
,
CardId
.
Reasoning
);
PSYOmega_count
++;
return
true
;
}
}
...
...
README.md
View file @
0542a595
...
...
@@ -127,6 +127,11 @@ WindBot can run as a "server", provide a http interface to create bot.
*
Nekroz
### AI Template Generator
A Java program which generate executor code from deck, made by Levyaton.
https://github.com/Levyaton/WindbotTemplateGenerator
### Server mode
WindBot can run as a "server", provide a http interface to create bot.
...
...
WindBotInfo.cs
View file @
0542a595
...
...
@@ -22,7 +22,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Port
=
7911
;
HostInfo
=
""
;
Version
=
0x135
1
;
Version
=
0x135
2
;
Hand
=
0
;
Debug
=
false
;
Chat
=
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