Commits

Anonymous committed 1964fbf

changed face naming

Comments (0)

Files changed (4)

coffee/app.coffee

 
     # cube colors to css colors correspondance
     colors:
-        'Y': 'yellow'
-        'B': 'blue'
-        'R': 'red'
-        'G': 'green'
-        'O': 'orange'
-        'W': 'white'
+        '1': 'yellow'
+        '2': 'blue'
+        '3': 'red'
+        '4': 'green'
+        '5': 'orange'
+        '6': 'white'
 
     # list of movements where the specified face is hidden on the showcube
     invisibles:

coffee/cube.coffee

 window.Cube = class Cube
     constructor: ->
         @state = [
-            ['Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y']
-            ['B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B']
-            ['R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R']
-            ['G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G']
-            ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']
-            ['W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W']
+            ['1', '1', '1', '1', '1', '1', '1', '1', '1']
+            ['2', '2', '2', '2', '2', '2', '2', '2', '2']
+            ['3', '3', '3', '3', '3', '3', '3', '3', '3']
+            ['4', '4', '4', '4', '4', '4', '4', '4', '4']
+            ['5', '5', '5', '5', '5', '5', '5', '5', '5']
+            ['6', '6', '6', '6', '6', '6', '6', '6', '6']
         ]
         @movs =
             'R' : [
     };
 
     CubeView.prototype.colors = {
-      'Y': 'yellow',
-      'B': 'blue',
-      'R': 'red',
-      'G': 'green',
-      'O': 'orange',
-      'W': 'white'
+      '1': 'yellow',
+      '2': 'blue',
+      '3': 'red',
+      '4': 'green',
+      '5': 'orange',
+      '6': 'white'
     };
 
     CubeView.prototype.invisibles = {
     Cube.name = 'Cube';
 
     function Cube() {
-      this.state = [['Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'], ['B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B'], ['R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R'], ['G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'], ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O'], ['W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W']];
+      this.state = [['1', '1', '1', '1', '1', '1', '1', '1', '1'], ['2', '2', '2', '2', '2', '2', '2', '2', '2'], ['3', '3', '3', '3', '3', '3', '3', '3', '3'], ['4', '4', '4', '4', '4', '4', '4', '4', '4'], ['5', '5', '5', '5', '5', '5', '5', '5', '5'], ['6', '6', '6', '6', '6', '6', '6', '6', '6']];
       this.movs = {
         'R': [[[0, 2], [3, 6], [5, 2], [1, 2]], [[0, 5], [3, 3], [5, 5], [1, 5]], [[0, 8], [3, 0], [5, 8], [1, 8]], [[2, 0], [2, 2], [2, 8], [2, 6]], [[2, 1], [2, 5], [2, 7], [2, 3]]],
         'U': [[[0, 0], [0, 2], [0, 8], [0, 6]], [[0, 1], [0, 5], [0, 7], [0, 3]], [[1, 0], [4, 0], [3, 0], [2, 0]], [[1, 1], [4, 1], [3, 1], [2, 1]], [[1, 2], [4, 2], [3, 2], [2, 2]]],