Timeline for A chess engine in Java: generating white pawn moves
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28 at 10:04 | comment | added | coderodde | @Falco I feel you. I will get back to your advice asap. | |
Jun 28 at 9:28 | comment | added | Falco |
@coderodde Whenever you feel inclined to write a comment to segregate a function into sections, these sections should probably be functions of their own. This can make your move-generation method Pawn.generateRegularMoves(...); Pawn.generateCapturingMoves(...); Pawn.generateEnpassantMoves(...); Pawn.handlePromotions(...) and each of these methods is very clear and short.
|
|
Jun 27 at 21:42 | comment | added | vnp | @coderodde Added a test case. | |
Jun 27 at 21:42 | history | edited | vnp | CC BY-SA 4.0 |
added 1 character in body
|
Jun 27 at 21:32 | history | edited | vnp | CC BY-SA 4.0 |
added 1 character in body
|
Jun 27 at 10:45 | comment | added | coderodde | I am keeping missing the promotion is buggy part. Could you elaborate? | |
Jun 26 at 16:27 | history | edited | vnp | CC BY-SA 4.0 |
added 181 characters in body
|
Jun 26 at 16:17 | history | answered | vnp | CC BY-SA 4.0 |