import { BlockType , ClockRotate } from './types' ; import { IDLE , RIGHT_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , RIGHT_RIGHT , RIGHT_LEFT , BOTTOM_LEFT , } from './directions' ; export const separator = [ IDLE , IDLE , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_LEFT , TOP_RIGHT , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_LEFT , TOP_RIGHT , IDLE , IDLE , ] ; export const numberZero = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberOne = [ IDLE , BOTTOM_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , IDLE , TOP_BOTTOM , BOTTOM_LEFT , TOP_RIGHT , IDLE , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_BOTTOM , TOP_BOTTOM , IDLE , BOTTOM_LEFT , TOP_RIGHT , TOP_LEFT , RIGHT_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberTwo = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberThree = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberFour = [ BOTTOM_LEFT , RIGHT_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_LEFT , TOP_RIGHT , IDLE , IDLE , ] ; export const numberFive = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberSix = [ IDLE , IDLE , BOTTOM_LEFT , RIGHT_BOTTOM , IDLE , IDLE , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberSeven = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_LEFT , TOP_RIGHT , IDLE , IDLE , ] ; export const numberEight = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_LEFT , RIGHT_LEFT , RIGHT_LEFT , TOP_RIGHT , ] ; export const numberNine = [ BOTTOM_LEFT , RIGHT_LEFT , RIGHT_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_BOTTOM , TOP_BOTTOM , TOP_BOTTOM , TOP_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , BOTTOM_LEFT , RIGHT_LEFT , TOP_RIGHT , TOP_BOTTOM , TOP_BOTTOM , IDLE , IDLE , TOP_LEFT , TOP_RIGHT , IDLE , IDLE , ] ; const SwitchNumber = ( number ) => { switch ( number ) { case '0' : return numberZero ; case '1' : return numberOne ; case '2' : return numberTwo ; case '3' : return numberThree ; case '4' : return numberFour ; case '5' : return numberFive ; case '6' : return numberSix ; case '7' : return numberSeven ; case '8' : return numberEight ; case '9' : return numberNine ; default : return separator ; } } ; export default SwitchNumber ;