INDAPlus21 / INDAPlus21/eliased-chess
Pass
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Superbra jobbat!**
However, I cannot compile your application. I judge this to be a case of "but it works on my machine".
```rust
error[E0277]: `[[Option; 8]; 8]` is not an iterator
--> src\lib.rs:291:21
|
291 | for line in self.board {
| ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
|
= help: the trait `Iterator` is not implemented for `[[Option; 8]; 8]`
= note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
= note: required because of the requirements on the impl of `IntoIterator` for `[[Option; 8]; 8]`
= note: required by `into_iter`
error[E0277]: `[[Option; 8]; 8]` is not an iterator
--> src\lib.rs:291:21
|
291 | for line in self.board {
| ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
|
= help: the trait `Iterator` is not implemented for `[[Option; 8]; 8]`
= note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
= note: required because of the requirements on the impl of `IntoIterator` for `[[Option; 8]; 8]`
= note: required by `into_iter`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: could not compile `eliased-chess`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
```
Tips: It is more efficient to search for check from the king's perspective, rather than calculating potential positions for every of the opponent's pieces.
I really liked that you wrote an AI script, despite of the out-commented code mess!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/lib.rs:291 and reproduce the reported compilation failure. Use the compiler diagnostic about iterating over self.board as the guide, then confirm that the project compiles successfully; no test file is mentioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100