Skip to content

JDK23: Upgrade the Gradle wrapper to support JDK 23 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions app/src/main/rust/tictactoe/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ mod tictactoe {
}

pub fn has_chain(&self, player: u32) -> bool {
let mut chain = 0;

// rows
let mut chain: u32;
for row_index in 0..self.dimension {
chain = 0;
for col_index in 0..self.dimension {
if self.get(row_index, col_index) == player {
chain += 1;
Expand All @@ -271,6 +271,7 @@ mod tictactoe {
}
// cols
for col_index in 0..self.dimension {
chain = 0;
for row_index in 0..self.dimension {
if self.get(row_index, col_index) == player {
chain += 1;
Expand All @@ -283,6 +284,7 @@ mod tictactoe {
}
}
// diagonals
chain = 0;
for offset in 0..self.dimension {
if self.get(offset, offset) == player {
chain += 1;
Expand All @@ -293,6 +295,7 @@ mod tictactoe {
return true;
}
}
chain = 0;
for offset in 0..self.dimension {
if self.get(offset, self.dimension - offset - 1) == player {
chain += 1;
Expand Down Expand Up @@ -407,4 +410,4 @@ mod tictactoe {
assert_eq!(board.has_chain(1), true);
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading