File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2323DNF = 'DNF'
2424
2525PLUS_TWO = '+2'
26+
27+ CUBE_SIZES = list (range (2 , 8 ))
Original file line number Diff line number Diff line change 22from random import choices
33from random import randint
44
5+ from term_timer .constants import CUBE_SIZES
56from term_timer .constants import MOVES
67from term_timer .magic_cube import FACES_ORDER
78from term_timer .magic_cube import Cube
@@ -65,7 +66,7 @@ def build_cube_moves(cube_size: int) -> list[str]:
6566
6667MOVES_BY_CUBE = {
6768 i : build_cube_moves (i )
68- for i in range ( 2 , 8 )
69+ for i in CUBE_SIZES
6970}
7071
7172ITERATIONS_BY_CUBE = {
Original file line number Diff line number Diff line change 55
66from term_timer .argparser import ArgumentParser
77from term_timer .console import console
8+ from term_timer .constants import CUBE_SIZES
89from term_timer .in_out import load_solves
910from term_timer .in_out import save_solves
1011from term_timer .list import Listing
@@ -34,7 +35,7 @@ def get_arguments() -> Any:
3435 config .add_argument (
3536 '-c' , '--cube' ,
3637 type = int ,
37- choices = range ( 2 , 8 ) ,
38+ choices = CUBE_SIZES ,
3839 default = 3 ,
3940 metavar = 'CUBE' ,
4041 help = (
You can’t perform that action at this time.
0 commit comments