Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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