Geocrack

Miror algorithm cubing

Jul 26th, 2022
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import pyperclip
  2.  
  3. miror = {
  4.     "R": "L'",
  5.     "L": "R'",
  6.  
  7.     "U": "U'",
  8.     "U'": "U",
  9.  
  10.     "D": "D'",
  11.     "D'": "D",
  12.  
  13.     "F": "F'",
  14.     "F'": "F",
  15.  
  16.     "R'": "L",
  17.     "L'": "R",
  18.  
  19.     "L2": "R2",
  20.     "R2": "L2"
  21. }
  22.  
  23. while True:
  24.     algorithm = input("Geben sie den Algorithmus ein, welcher zu spiegel ist: ").split(" ")
  25.     for i in range(len(algorithm)):
  26.         if algorithm[i] in miror:
  27.             algorithm[i] = miror[algorithm[i]]
  28.     print(algorithm)
  29.     save = " ".join(algorithm)
  30.     print("-"*40)
  31.     print(save)
  32.     print("-"*40)
  33.     pyperclip.copy(save)
Advertisement
Add Comment
Please, Sign In to add comment