Keeps the repo root clean - only README.md visible on landing page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
804 B
C#
28 lines
804 B
C#
var positionMapping = new Dictionary<(int, int), (int, int)>
|
|
{
|
|
{ (13, 13), (15, 15) },
|
|
{ (10, 10), (12, 12) },
|
|
{ (5, 5), (7, 7) },
|
|
{ (8, 12), (10, 14) },
|
|
{ (3, 7), (5, 9) },
|
|
{ (6, 2), (8, 4) },
|
|
{ (11, 9), (13, 11) },
|
|
{ (4, 14), (6, 16) },
|
|
{ (9, 6), (11, 8) },
|
|
{ (2, 11), (4, 13) }
|
|
};
|
|
|
|
while (Run)
|
|
{
|
|
if (positionMapping.TryGetValue((Self.X, Self.Y), out var rocksPosition))
|
|
{
|
|
var rocks = FloorItems.Where(x => x.GetName() == "Color Tile" &&
|
|
x.Location.X == rocksPosition.Item1 &&
|
|
x.Location.Y == rocksPosition.Item2).ToList();
|
|
foreach (var rock in rocks)
|
|
{
|
|
Send(Out["Move"], 9, 10); //rock.Id
|
|
Delay(10);
|
|
}
|
|
}
|
|
} |