Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Is it a valid chess move?

Current License: CC BY-SA 4.0

26 events
when toggle format what by license comment
Jul 5, 2022 at 3:55 answer added Deadcode timeline score: 5
Sep 9, 2021 at 10:24 answer added ophact timeline score: 5
Dec 25, 2019 at 20:56 history edited Deadcode CC BY-SA 4.0
Adapt pawn promotion appropriately to this challenge
Dec 25, 2019 at 19:54 history edited Deadcode CC BY-SA 4.0
clarify pawn movement rules, and add pawn promotion
Dec 25, 2019 at 18:41 history edited Deadcode CC BY-SA 4.0
Fix error in array-description of example board, using the picture as a reference (used both as an example and a test case)
Dec 25, 2019 at 1:56 answer added Deadcode timeline score: 11
Dec 31, 2017 at 8:42 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
S Dec 1, 2017 at 7:58 history suggested ais523 CC BY-SA 3.0
correct a few mistakes in the rules of chess (note that the existing answer matches the rules of chess not the rules stated in the problem); also a few general typo/formatting fixes
Dec 1, 2017 at 6:11 review Suggested edits
S Dec 1, 2017 at 7:58
Nov 21, 2017 at 18:43 comment added caird coinheringaahing @ovs Yes, that seems to be acceptable
Nov 21, 2017 at 18:41 comment added ovs this for your example board.
Nov 21, 2017 at 18:37 comment added caird coinheringaahing @ovs could you give an example? I'm not sure I understand
Nov 21, 2017 at 18:36 comment added ovs Can we get a 2d array of pieces as input?
Nov 20, 2017 at 16:18 comment added caird coinheringaahing @FelixPalmen Correct.
Nov 20, 2017 at 16:18 comment added Felix Palmen Just so I understand it correctly: If I get a second input for a white knight and a target position, and there are two white knights on the board, I have to check whether that target position is valid for any of them?
Nov 19, 2017 at 23:16 comment added caird coinheringaahing @SebastianLamerichs Yes, because it requires more information than simply one move (such as the previous moves)
Nov 19, 2017 at 23:13 comment added Sellyme So en passant and castling should be treated as an invalid move?
Nov 19, 2017 at 22:24 history tweeted twitter.com/StackCodeGolf/status/932374041595441152
Nov 19, 2017 at 22:11 answer added Jonathan Allan timeline score: 4
Nov 19, 2017 at 19:52 comment added caird coinheringaahing @JonathanAllan I think that's an acceptable way to take input, yes.
Nov 19, 2017 at 19:49 comment added Jonathan Allan So, would the first field of a FEN record be acceptable as the first of the two inputs?
Nov 19, 2017 at 19:46 comment added caird coinheringaahing @JonathanAllan you may take input in any such way in which it is clear what the inputs are, and that it follows the rules on meta. You could take colour as a boolean if you want, or you could take the first input as a flat list, or any other similarly flexible way.
Nov 19, 2017 at 19:45 comment added Jonathan Allan "you may take input in a method you want" - does this mean we can move away from the specified array of [up to] 32 arrays, or just that we may, for example, take <colour> as a boolean?
Nov 19, 2017 at 18:59 history edited caird coinheringaahing CC BY-SA 3.0
added 128 characters in body
Nov 19, 2017 at 18:49 comment added FlipTack "A piece on the same side moves, exposing the king to check." - this wording doesn't seem to fit now that you've moved the heading it goes under. I'd change it to something such as "Moving this piece will expose the king to check"
Nov 19, 2017 at 18:41 history asked caird coinheringaahing CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /