#!/usr/bin/env python3
import klib
import getpass
if __name__ == "__main__":
    try:
        pin = input("pin > ")
        name = input('name > ')
        email = input('email > ')
        password = getpass.getpass('password > ')
        user = klib.Kahoot(pin, name)
        user.authenticate(email, password)
        user.checkPin()
        user.startGame()
    except KeyboardInterrupt:
        pass
