<commit_before>////////////////////////////////////////////////
/*   Provided Code - Please Don't Edit   */
////////////////////////////////////////////////
'use strict';

function getInput() {
    console.log("Please choose either 'rock', 'paper', or 'scissors'.")
    return prompt();
}
function randomPlay() {
    var randomNumber = Math.random();
    if (randomNumber < 0.33) {
        return "rock";
    } else if (randomNumber < 0.66) {
        return "paper";
    } else {
        return "scissors";
    }
}
////////////////////////////////////////////////
/*           Write Your Code Below            */
////////////////////////////////////////////////

function getPlayerMove(move) {
    if (move == true) {
        move = move;
    } else if (move == null) {
        move = getInput ();
    } else {
        move = getInput ();   
    } return move;
}

function getComputerMove(move) {
     if (move == true) {
        move = move;
    } else if (move == null) {
        move = randomPlay;
    } else {
        move = randomPlay;
    } return move;
}

function getWinner(playerMove,computerMove) {
    var winner;
    for (playerMove = true) {
        switch (playerMove) {
            case computerMove:
                winner = 'tie';
                break;
            case 'rock'
                if (computerMove == 'scissors') {
                    winner = 'player';<commit_msg>another hw3 section update<commit_after>////////////////////////////////////////////////
/*   Provided Code - Please Don't Edit   */
////////////////////////////////////////////////
'use strict';

function getInput() {
    console.log("Please choose either 'rock', 'paper', or 'scissors'.")
    return prompt();
}
function randomPlay() {
    var randomNumber = Math.random();
    if (randomNumber < 0.33) {
        return "rock";
    } else if (randomNumber < 0.66) {
        return "paper";
    } else {
        return "scissors";
    }
}
////////////////////////////////////////////////
/*           Write Your Code Below            */
////////////////////////////////////////////////

function getPlayerMove(move) {
    if (move == true) {
        move = move;
        return move;
    } else if (move == null) {
        move = getInput ();
        return move;
    } else {
        move = getInput ();
        return move;   
    }
}

function getComputerMove(move) {
     if (move == true) {
        move = move;
        return move;
    } else if (move == null) {
        move = randomPlay;
        return move;
    } else {
        move = randomPlay;
        return move;
    } 
}

function getWinner(playerMove,computerMove) {
    var winner;
    for (playerMove = true) {
        switch (playerMove) {
            case computerMove:
                winner = 'tie';
                break;
            case 'rock'
                if (computerMove == 'scissors') {
                    winner = 'player';
{'fraction_non_alphanumeric': 0.2396694214876033, 'fraction_numerical': 0.004476584022038568, 'mean_word_length': 1.1990915972747918, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5801977', 'n_tokens_mistral': 769, 'n_tokens_neox': 739, 'n_words': 208}