def play_rps_cpu():
    player1 = Player(request.form['player1'], request.form['choice1'])
    player2 = Player('Computer', (["rock","paper","scissors"])[randrange(0, 3)])
    game = Game(player1, player2)
    reply = game.play_new_game(player1, player2)
    # RPS Image CSS properties
    cp1 = game.clip_path(player1)
    ml1 = game.margin_left(player1)
    mt1 = game.margin_top(player1)
    cp2 = game.clip_path(player2)
    ml2 = game.margin_left(player2)
    mt2 = game.margin_top(player2)
    return render_template('play-cpu.html', reply=reply, cp1=cp1, ml1=ml1, mt1=mt1, cp2=cp2, ml2=ml2, mt2=mt2)
def play_rps():
    player1 = Player(request.form['player1'], request.form['choice1'])
    player2 = Player(request.form['player2'], request.form['choice2'])
    game = Game(player1, player2)
    reply = game.play_new_game(player1, player2)
    # RPS Image CSS properties
    cp1 = game.clip_path(player1)
    ml1 = game.margin_left(player1)
    mt1 = game.margin_top(player1)
    cp2 = game.clip_path(player2)
    ml2 = game.margin_left(player2)
    mt2 = game.margin_top(player2)
    return render_template('index.html', reply=reply, cp1=cp1, ml1=ml1, mt1=mt1, cp2=cp2, ml2=ml2, mt2=mt2)