Skip to content

Comments

Add C# .NET 10 EverySecondTurnSolver#74

Merged
newtomsoft merged 4 commits intodotnetfrom
add-csharp-everysecondturn-solver-18085602468832694473
Dec 26, 2025
Merged

Add C# .NET 10 EverySecondTurnSolver#74
newtomsoft merged 4 commits intodotnetfrom
add-csharp-everysecondturn-solver-18085602468832694473

Conversation

@google-labs-jules
Copy link
Contributor

This PR adds a C# .NET 10 solution that ports the EverySecondTurnSolver from Python. It uses the Google.OrTools NuGet package to solve the puzzle using CP-SAT. The implementation includes the main solver logic, grid/graph helpers, and a console runner with a sample grid.


PR created automatically by Jules for task 18085602468832694473 started by @newtomsoft

…rTools

- Created DotNet/EverySecondTurnSolver solution and project.
- Ported Python logic to C# using CP-SAT.
- Implemented connectivity constraints and iterative subtour elimination.
- Added Program.cs with a sample runner.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@github-actions
Copy link

github-actions bot commented Dec 26, 2025

Qodana Community for Python

125 new problems were found

Inspection name Severity Problems
Missing await syntax in coroutine calls 🔶 Warning 36
Redeclared names without usages 🔶 Warning 20
Unused imports 🔶 Warning 19
Invalid type hints definitions and usages 🔶 Warning 8
Unbound local variables 🔶 Warning 5
Unused local symbols ◽️ Notice 19
Shadowing names from outer scopes ◽️ Notice 8
Method is not declared static ◽️ Notice 5
An instance attribute is defined outside init`` ◽️ Notice 2
Unclear exception clauses ◽️ Notice 2
Invalid abstract class definition and usages ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

…lasses, clean up grid handling and improve solver code structure
…eparate files, simplify solver logic, and add a test project
…project dependencies for .NET 10 compatibility
@newtomsoft newtomsoft force-pushed the add-csharp-everysecondturn-solver-18085602468832694473 branch from b3e0797 to 4eee258 Compare December 26, 2025 22:06
@newtomsoft newtomsoft marked this pull request as ready for review December 26, 2025 22:10
@newtomsoft newtomsoft self-requested a review December 26, 2025 22:10
@newtomsoft newtomsoft changed the base branch from develop to dotnet December 26, 2025 22:12
@newtomsoft newtomsoft merged commit 7f5d218 into dotnet Dec 26, 2025
5 checks passed
@newtomsoft newtomsoft deleted the add-csharp-everysecondturn-solver-18085602468832694473 branch December 26, 2025 22:12
@newtomsoft
Copy link
Owner

Try to use or-tools witch is wasm compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant