Skip to content

Instantly share code, notes, and snippets.

@jmhummel
Last active September 30, 2018 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmhummel/fe7604ab830567d5939b21d3e6c57dfa to your computer and use it in GitHub Desktop.
Save jmhummel/fe7604ab830567d5939b21d3e6c57dfa to your computer and use it in GitHub Desktop.
2018-09-28-classic-results

Go here to see the python script!

Number of starting permutations

51480

Number of moves required:

{0: 1, 1: 65, 2: 1253, 3: 9653, 4: 27422, 5: 12946, 6: 140}

Stats:

max: 6
mean (avg): 4.01686091686
median: 4
mode: 4
stdev: 0.747403751917

A 6-move example:

notation: 0-based indexes, first number is the row, counting down, second number is the column, counting right

start

          ⚽
        ⚽  ⚽
      🎱  ⚽  🎾
    ⚽  🎾  🎾  🎾
  ⚽  🎾  🎾  ⚽  🎾

swap ⚽ (4, 3) and 🎾 (4, 1)

          ⚽
        ⚽  ⚽
      🎱  ⚽  🎾
    ⚽  🎾  🎾  🎾
  ⚽  ⚽  🎾  🎾  🎾

swap 🎾 (3, 2) and ⚽ (0, 0)

          🎾
        ⚽  ⚽
      🎱  ⚽  🎾
    ⚽  🎾  ⚽  🎾
  ⚽  ⚽  🎾  🎾  🎾

swap 🎾 (4, 2) and ⚽ (4, 0)

          🎾
        ⚽  ⚽
      🎱  ⚽  🎾
    ⚽  🎾  ⚽  🎾
  🎾  ⚽  ⚽  🎾  🎾

swap 🎾 (2, 1) and 🎱 (2, 0)

          🎾
        ⚽  ⚽
      ⚽  🎱  🎾
    ⚽  🎾  ⚽  🎾
  🎾  ⚽  ⚽  🎾  🎾

swap 🎾 (2, 2) and ⚽ (2, 0)

          🎾
        ⚽  ⚽
      🎾  🎱  ⚽
    ⚽  🎾  ⚽  🎾
  🎾  ⚽  ⚽  🎾  🎾

swap 🎾 (4, 4) and ⚽ (1, 1)

          🎾
        ⚽  🎾
      🎾  🎱  ⚽
    ⚽  🎾  ⚽  🎾
  🎾  ⚽  ⚽  🎾  ⚽

goal

@jmhummel
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment