Skip to content

Commit

Permalink
Version: 0.1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-de-Oliveira committed Sep 21, 2021
1 parent 604fab8 commit ad97ad4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
from winConf import *
import json

with open('lib/setting.json', 'r') as f: setting = json.loads(f.read())
consoleClear()
print('CanUseTimer\'s version: 0.1.4.2 BETA.\n'
'This software is open to free use and study code,\n'
'for more info: https://github.com/samuel-de-oliveira/CanUseTimer.\n')

while True:
with open('lib/setting.json', 'r') as f: setting = json.loads(f.read())
line(style='double_line')
print('Digit a one of these numbers:')
print("1: Start\n"
"2: Settings\n"
"3: Credits\n"
"4: Clear list\n"
"3: Clear list\n"
"4: Credits\n"
"5: Exit")
line(style='double_line')
console = Console(size=5)
Expand All @@ -26,9 +26,9 @@
window('Settings')
settingManager()
if console == 3:
timesSave.clear()
window('The cube\'s times is cleared!')
if console == 4:
window('Credits to:', 'double_line')
print('The creator: Samuel de Oliveira')
if console == 4:
timesSave.clear()
window('The cube\'s times is cleared!')
if console == 5: break
5 changes: 1 addition & 4 deletions lib/Shufflers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def Salete(size):
if x == 1: moves[letter] = f'{moves[letter]}\'' # add apostrophe
if x == 2: moves[letter] = f'{moves[letter]}2' # add two
if x == 3: pass # do nothing "\_(シ)_/"

return moves

#-*-------------- Cida shuffler --------------*-#
Expand Down Expand Up @@ -113,13 +112,12 @@ def Cida(size, corner):
x = randint(1, 2)
if x == 1: moves[letter] = f'{moves[letter]}\'' # add apostrophe
if x == 2: pass # do nothing "\_(シ)_/"

return moves

def Lucia(size):
moves = []
old = 0
for moves in range(1, 1+size):
for move in range(1, 1+size):
while True:
m = randint(1, 6)

Expand Down Expand Up @@ -149,4 +147,3 @@ def Lucia(size):
moves.append('B')
break
return moves

3 changes: 2 additions & 1 deletion winConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ def line(size=40, style='basic'):
if style == 'basic': print('-' * size)
elif style == 'double_line': print('=' * size)
elif style == 'hashtag': print('#' * size)
elif style == 'zigzag': print('W' * size)
elif style == 'zigzag': print('V' * size)
elif style == 'zagzig': print('W' * size)
else: raise NameError(f'The style \'{style}\' doesn\'t exist.')

def window(msg='[Null]', style='basic'):
Expand Down

0 comments on commit ad97ad4

Please sign in to comment.