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
nanahira
windbot
Commits
f077da46
Commit
f077da46
authored
Feb 10, 2026
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid using tuple (keep on C# 6)
parent
0f214df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
18 deletions
+31
-18
Game/AI/Decks/MalissOCGExecutor.cs
Game/AI/Decks/MalissOCGExecutor.cs
+31
-18
No files found.
Game/AI/Decks/MalissOCGExecutor.cs
View file @
f077da46
...
...
@@ -205,6 +205,13 @@ namespace WindBot.Game.AI.Decks
return
Summon
==
0
;
}
}
private
struct
ZoneData
{
public
int
Zone
;
public
ClientCard
[]
CheckZone
;
}
public
override
void
OnNewTurn
()
{
Count
.
AddPhase
();
...
...
@@ -276,29 +283,35 @@ namespace WindBot.Game.AI.Decks
}
if
(
cardId
==
CardId
.
Allied_Code_Talker_Ignister
)
{
var
zones
=
new
Dictionary
<(
int
zone
,
ClientCard
[]
chk_zone
),
int
>();
var
updates
=
new
Dictionary
<(
int
zone
,
ClientCard
[]
chk_zone
),
int
>();
zones
[(
Zones
.
z0
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
1
]
})]
=
0
;
zones
[(
Zones
.
z1
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
0
],
Bot
.
MonsterZone
[
2
]
})]
=
0
;
zones
[(
Zones
.
z2
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
1
],
Bot
.
MonsterZone
[
3
]
})]
=
0
;
zones
[(
Zones
.
z3
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
2
],
Bot
.
MonsterZone
[
4
]
})]
=
0
;
zones
[(
Zones
.
z4
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
3
]
})]
=
0
;
zones
[(
Zones
.
z5
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
0
],
Bot
.
MonsterZone
[
1
],
Bot
.
MonsterZone
[
2
]
})]
=
0
;
zones
[(
Zones
.
z6
,
new
ClientCard
[]
{
Bot
.
MonsterZone
[
2
],
Bot
.
MonsterZone
[
3
],
Bot
.
MonsterZone
[
4
]
})]
=
0
;
foreach
(
var
entry
in
zones
)
ZoneData
[]
zoneData
=
new
ZoneData
[]
{
new
ZoneData
{
Zone
=
Zones
.
z0
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
1
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z1
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
0
],
Bot
.
MonsterZone
[
2
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z2
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
1
],
Bot
.
MonsterZone
[
3
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z3
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
2
],
Bot
.
MonsterZone
[
4
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z4
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
3
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z5
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
0
],
Bot
.
MonsterZone
[
1
],
Bot
.
MonsterZone
[
2
]
}
},
new
ZoneData
{
Zone
=
Zones
.
z6
,
CheckZone
=
new
ClientCard
[]
{
Bot
.
MonsterZone
[
2
],
Bot
.
MonsterZone
[
3
],
Bot
.
MonsterZone
[
4
]
}
}
};
int
maxNullCount
=
-
1
;
int
selectedZone
=
0
;
foreach
(
ZoneData
data
in
zoneData
)
{
if
((
entry
.
Key
.
z
one
&
available
)
==
0
)
if
((
data
.
Z
one
&
available
)
==
0
)
continue
;
ClientCard
[]
checkZone
=
entry
.
Key
.
chk_zone
;
int
nullCount
=
checkZone
.
Count
(
card
=>
card
==
null
);
updates
[
entry
.
Key
]
=
nullCount
;
int
nullCount
=
data
.
CheckZone
.
Count
(
card
=>
card
==
null
);
if
(
nullCount
>
maxNullCount
)
{
maxNullCount
=
nullCount
;
selectedZone
=
data
.
Zone
;
}
}
var
maxEntry
=
updates
.
OrderByDescending
(
entry
=>
entry
.
Value
).
FirstOrDefault
();
if
(
max
Entry
.
Key
!=
default
)
if
(
max
NullCount
>=
0
)
{
var
(
zone
,
checkZone
)
=
maxEntry
.
Key
;
return
zone
;
return
selectedZone
;
}
}
if
((
Zones
.
z6
&
available
)
>
0
)
return
Zones
.
z6
;
...
...
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