import UserFileEditor
from User import User
print(UserFileEditor.read_users()[1].get_name())
#This is Trey's guessing game with limited number of tries!
###########################################################################
from random import randrange
import time
import UserFileEditor
x=randrange(10)
solution=x+1
attempts=3
users = UserFileEditor.read_users()
usernames = []
for user in users:
    usernames.append(user.get_name())
stringinputs = {
    'one':1,
    'two':2,
    'three':3,
    'four':4,
    'five':5,
    'six':6,
    'seven':7,
    'eight':8,
    'nine':9,
    'ten':10
    }
    
username=input("Please enter your username or \"new\" for new user\n")
#if (username="******"):
#    
if (username in usernames):
    passcheck = users[usernames.index(username)].get_password()
    password=input("Please enter the password for user " + username + "\n")