move generation: redundant variable ? #4

Closed
opened 2021-11-15 11:26:52 +01:00 by bruno · 2 comments
Owner

move_gen(): is doit variable redundant with test on current turn ?

Said differently : Do we generate moves if and only if current turn is current color ?

`move_gen()`: is `doit` variable redundant with test on current turn ? Said differently : Do we generate moves if and only if current turn is current color ?
bruno added the
enhancement
question
labels 2021-11-15 11:26:52 +01:00
bruno self-assigned this 2021-11-15 11:26:52 +01:00
Author
Owner

Maybe not: We may want to calculate mobility for the 2 sides without generating resulting positions ?

Maybe not: We may want to calculate mobility for the 2 sides without generating resulting positions ?
Author
Owner

No. doit is necessary (think about future possible NULL moves)

No. `doit` is necessary (think about future possible NULL moves)
bruno closed this issue 2023-07-09 16:02:28 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bruno/brchess#4
No description provided.