Skip to main content
edited tags
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

This is code golf, the shortest code wins (subject to bonuses listed at the bottom of the question; so it's actually tagged code challengequestion).

This is code golf, the shortest code wins (subject to bonuses listed at the bottom of the question; so it's actually tagged code challenge).

This is code golf, the shortest code wins (subject to bonuses listed at the bottom of the question).

Notice removed Draw attention by Martin Ender
Bounty Ended with user1502040's answer chosen by Martin Ender
deleted 6 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
4 5_3           !                    5 and 3 clash will both land at the third beat,
  but
                                    but there is only a single throw at that beat.
  This
                                    This cannot be fixed with any throw in the blank.

2 5_4           !                    Any possible throw in the wildcard (including a
                                     0) will make a pattern for at least 3 balls.

3 54_           !                    The only solution that would correspond to a
                                     3-ball pattern is 540, which is not semantically
                                     valid because the 5 and 4 both land at beat 3.
                                     There are valid solutions, but they require at
                                     least 4 balls.
4 5_3           !                    5 and 3 clash will both land at the third beat,
                                      but there is only a single throw at that beat.
                                      This cannot be fixed with any throw in the blank.

2 5_4           !                    Any possible throw in the wildcard (including a
                                     0) will make a pattern for at least 3 balls.

3 54_           !                    The only solution that would correspond to a
                                     3-ball pattern is 540, which is not semantically
                                     valid because the 5 and 4 both land at beat 3.
                                     There are valid solutions, but they require at
                                     least 4 balls.
4 5_3           !                    5 and 3 will both land at the third beat, but
                                     there is only a single throw at that beat. This
                                     cannot be fixed with any throw in the blank.

2 5_4           !                    Any possible throw in the wildcard (including a
                                     0) will make a pattern for at least 3 balls.

3 54_           !                    The only solution that would correspond to a
                                     3-ball pattern is 540, which is not semantically
                                     valid because the 5 and 4 both land at beat 3.
                                     There are valid solutions, but they require at
                                     least 4 balls.
Notice added Draw attention by Martin Ender
Bounty Started worth 150 reputation by Martin Ender
added 315 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Note: You may omit patterns that are duplicates under cyclic permutations. E.g. for input 3 __ (note the two wildcards), both 42 and 24 are valid answers (among others), but they actually describe the same pattern. You can either output both or just one of them, but you'll have to do it consistently.

Note: You may omit patterns that are duplicates under cyclic permutations. E.g. for input 3 __ (note the two wildcards), both 42 and 24 are valid answers (among others), but they actually describe the same pattern. You can either output both or just one of them, but you'll have to do it consistently.

edited tags
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
Tweeted twitter.com/#!/StackCodeGolf/status/451131830746759168
added 89 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
deleted 110 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading