c district

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize scores
player_score = 0
opponent_score = 0

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def play(action, player_choice=None):
    global player_score, opponent_score
    
    match action:
        case "attack":
            if player_choice not in choices:
                return "Invalid choice. Choose rock, paper, or scissors."
            
            opponent_choice = random.choice(choices)
            result = check_win(player_choice, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}, Opponent's score: {opponent_score}."
            else:
                opponent_score += 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}, Opponent's score: {opponent_score}."
        
        case "get score":
            return f"Your score: {player_score}, Opponent's score: {opponent_score}."
        
        case "reset score":
            player_score = 0
            opponent_score = 0
            return "Scores have been reset."
        
        case _:
            return "Invalid action. Choose 'attack', 'get score', or 'reset score'."

# Example usage:
# print(play("attack", "rock"))
# print(play("get score"))
# print(play("reset score"))
 

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize scores
player_score = 0
opponent_score = 0

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def play(action):
    global player_score, opponent_score
    
    match action:
        case "rock" | "paper" | "scissors":
            opponent_choice = random.choice(choices)
            result = check_win(action, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}, Opponent's score: {opponent_score}."
            else:
                opponent_score += 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}, Opponent's score: {opponent_score}."
        
        case "get score":
            return f"Your score: {player_score}, Opponent's score: {opponent_score}."
        
        case "reset score":
            player_score = 0
            opponent_score = 0
            return "Scores have been reset."
        
        case _:
            return "Invalid action. Choose 'rock', 'paper', 'scissors', 'get score', or 'reset score'."

# Example usage:
# print(play("rock"))
# print(play("get score"))
# print(play("reset score"))
 

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize player score
player_score = 0

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def play(action):
    global player_score
    
    match action:
        case "rock" | "paper" | "scissors":
            opponent_choice = random.choice(choices)
            result = check_win(action, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}."
            else:
                player_score -= 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}."
        
        case "get score":
            return f"Your score: {player_score}."
        
        case "reset score":
            player_score = 0
            return "Scores have been reset."
        
        case _:
            return "Invalid action. Choose 'rock', 'paper', 'scissors', 'get score', or 'reset score'."

# Example usage:
# print(play("rock"))
# print(play("get score"))
# print(play("reset score"))
 

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize player score
player_score = 0

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def play(action):
    global player_score
    
    match action:
        case "rock" | "paper" | "scissors":
            opponent_choice = random.choice(choices)
            result = check_win(action, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}."
            else:
                player_score -= 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}."
        
        case "get score":
            return f"Your score: {player_score}."
        
        case "reset score":
            player_score = 0
            return "Scores have been reset."
 

fukurou

the supreme coder
ADMIN
Sure thing! Here's the list of Joey Wheeler's taunts, formatted normally for a text file:

### Winning Taunts
1. "Not too shab, but you're not gonna beat me with those lame attacks!"
2. "You're going down, Kaiba!"
3. "This is my duel, and I'm gonna win!"
4. "C'mon, bring it on!"
5. "You're gonna wish you never messed with me!"
6. "My deck's got the cards to crush you!"
7. "I'm just gettin' started!"
8. "Get ready to lose!"
9. "You think you can beat me? Dream on!"
10. "You're toast!"

### Losing Taunts
1. "You're out of your league!"
2. "You're just a big bully!"
3. "You're nothing but a cheater!"
4. "You're finished, Kaiba!"
5. "You're gonna pay for this!"
6. "You're not as tough as you think!"
7. "I won't let you get away with this!"
8. "This isn't over yet!"
9. "I won't back down!"
10. "I'll come back stronger!"

### Tie Taunts
1. "It's a tie! You got lucky!"
2. "Looks like we're evenly matched!"
3. "You're not bad, but I'm not done yet!"
4. "This duel is far from over!"
5. "You're pretty good, but let's see how you handle the next round!"
6. "We tied this time, but next time, I'll win!"
7. "Nice try, but it's not enough!"
8. "That was close, but I'm not giving up!"
9. "You're good, but I'm better!"
10. "We tied, but I've got more tricks up my sleeve!"

Feel free to copy and paste this into your text file! Anything else I can help with? 😊
 

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize player score
player_score = 0

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def get_taunt(score):
    """
    Returns a Joey Wheeler taunt based on the player's score.
    """
    if score > 0:
        taunts = [
            "Not too shab, but you're not gonna beat me with those lame attacks!",
            "You're going down, Kaiba!",
            "This is my duel, and I'm gonna win!",
            "C'mon, bring it on!",
            "You're gonna wish you never messed with me!"
        ]
    elif score < 0:
        taunts = [
            "You're out of your league!",
            "You're just a big bully!",
            "You're nothing but a cheater!",
            "You're finished, Kaiba!",
            "You're gonna pay for this!"
        ]
    else:
        taunts = [
            "It's a tie! You got lucky!",
            "Looks like we're evenly matched!",
            "You're not bad, but I'm not done yet!",
            "This duel is far from over!",
            "You're pretty good, but let's see how you handle the next round!"
        ]
    return random.choice(taunts)

def play(action):
    global player_score
    
    match action:
        case "rock" | "paper" | "scissors":
            opponent_choice = random.choice(choices)
            result = check_win(action, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}."
            else:
                player_score -= 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}."
        
        case "get score":
            taunt = get_taunt(player_score)
            return f"Your score: {player_score}. {taunt}"
        
        case "reset score":
            player_score = 0
            return "Scores have been reset."

# Example usage:
# print(play("rock"))
# print(play("get score"))
# print(play("reset score"))
 

fukurou

the supreme coder
ADMIN
Python:
import random

# Initialize player score and track the player's last choices
player_score = 0
last_choices = []

# Choices for the game
choices = ["rock", "paper", "scissors"]

def check_win(player_choice, opponent_choice):
    """
    Determines if the player wins against the opponent.
    Returns True if the player wins, False otherwise.
    """
    if player_choice == opponent_choice:
        return None  # It's a tie
    elif (player_choice == "rock" and opponent_choice == "scissors") or \
         (player_choice == "scissors" and opponent_choice == "paper") or \
         (player_choice == "paper" and opponent_choice == "rock"):
        return True  # Player wins
    else:
        return False  # Opponent wins

def get_opponent_choice():
    global last_choices
    if len(last_choices) >= 2:
        if all(choice == last_choices[-1] for choice in last_choices[-2:]):
            if last_choices[-1] == "rock":
                return "paper"
            elif last_choices[-1] == "paper":
                return "scissors"
            elif last_choices[-1] == "scissors":
                return "rock"
    return random.choice(choices)

def get_taunt(score):
    """
    Returns a Joey Wheeler taunt based on the player's score.
    """
    if score > 0:
        taunts = [
            "Not too shab, but you're not gonna beat me with those lame attacks!",
            "You're going down, Kaiba!",
            "This is my duel, and I'm gonna win!",
            "C'mon, bring it on!",
            "You're gonna wish you never messed with me!"
        ]
    elif score < 0:
        taunts = [
            "You're out of your league!",
            "You're just a big bully!",
            "You're nothing but a cheater!",
            "You're finished, Kaiba!",
            "You're gonna pay for this!"
        ]
    else:
        taunts = [
            "It's a tie! You got lucky!",
            "Looks like we're evenly matched!",
            "You're not bad, but I'm not done yet!",
            "This duel is far from over!",
            "You're pretty good, but let's see how you handle the next round!"
        ]
    return random.choice(taunts)

def play(action):
    global player_score, last_choices
    
    match action:
        case "rock" | "paper" | "scissors":
            last_choices.append(action)
            if len(last_choices) > 5:
                last_choices.pop(0)
            
            opponent_choice = get_opponent_choice()
            result = check_win(action, opponent_choice)
            
            if result is None:
                return "It's a tie!"
            elif result:
                player_score += 1
                return f"You win! Opponent chose {opponent_choice}. Your score: {player_score}."
            else:
                player_score -= 1
                return f"You lose! Opponent chose {opponent_choice}. Your score: {player_score}."
        
        case "get score":
            taunt = get_taunt(player_score)
            return f"Your score: {player_score}. {taunt}"
        
        case "reset score":
            player_score = 0
            return "Scores have been reset."

# Example usage:
# print(play("rock"))
# print(play("get score"))
# print(play("reset score"))
 
Top