Skip to content

Test: one Destroyer alone on the whole board - #3

Merged
AdminGodZ merged 1 commit into
mainfrom
test-one-destroyer
Nov 20, 2026
Merged

AdminGodZ merged 1 commit into
mainfrom
test-one-destroyer

Conversation

@AdminGodZ

Copy link
Copy Markdown
Owner

Adds a test for the last-ship search in crates/core/src/ai/last.rs: a Destroyer alone on an empty board needs 4,676 shots in total over its 180 placements (1169/45 each), and the bound meets the first line of play, so no position is opened.

This was an uncommitted change in the local checkout; the only edit on top of it is cargo fmt splitting the long assert_eq!.

Checked locally on top of current main: fmt, clippy -D warnings, cargo test --release (59 + 2 passed, including the new test).

4,676 shots over its 180 placements (1169/45 each); the bound and the first
line of play meet, so the search opens no position.
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
broadside Ready Ready Preview Nov 20, 2026 8:30am UTC

@AdminGodZ
AdminGodZ merged commit 6c77e48 into main Nov 20, 2026
4 checks passed
@AdminGodZ
AdminGodZ deleted the test-one-destroyer branch November 20, 2026 08:42
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