wu981526092 commited on
Commit
fed2a7e
·
1 Parent(s): 4cb767c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def generate_player_description(player):
33
  def gpt_play(player, round_num, last_round,model):
34
  game_rules = f'''
35
  You are a self-interested intelligence. You are playing a game repeatedly with another player. Be aware that the other player can make
36
- mistakes sometimes. In this game, you can choose either Option J or Option F to obtain difference points, the higher the point the better. The rules of the game are:
37
  '''
38
 
39
  player_description = generate_player_description(player)
@@ -45,7 +45,7 @@ mistakes sometimes. In this game, you can choose either Option J or Option F to
45
  elif player == 2:
46
  previous_round = f"In round {round_num-1}, you chose Option {last_round[1]} and the other player chose Option {last_round[0]}. Thus, you won {PAYOFF[last_round][1]} points and the other player won {PAYOFF[last_round][0]} points."
47
 
48
- prompt = f"{game_rules}\n\n{player_description}\n\n{previous_round}\n\nYou are currently playing round {round_num}.\n\nQuestion: Based on the rules and the result of the previous round, which Option do you choose for this round, Option J or Option F ? Answer only \"J\" or \"F\"\n\nAnswer: "
49
 
50
  #print(f"Below is the prompt for Player {player} and Round {round_num}:\n {prompt}")
51
 
 
33
  def gpt_play(player, round_num, last_round,model):
34
  game_rules = f'''
35
  You are a self-interested intelligence. You are playing a game repeatedly with another player. Be aware that the other player can make
36
+ mistakes sometimes. In this game, you can choose either Option J or Option F. The rules of the game are:
37
  '''
38
 
39
  player_description = generate_player_description(player)
 
45
  elif player == 2:
46
  previous_round = f"In round {round_num-1}, you chose Option {last_round[1]} and the other player chose Option {last_round[0]}. Thus, you won {PAYOFF[last_round][1]} points and the other player won {PAYOFF[last_round][0]} points."
47
 
48
+ prompt = f"{game_rules}\n\n{player_description}\n\n{previous_round}\n\nYou are currently playing round {round_num}.\n\nQuestion: Based on the rules, which Option do you choose for this round, Option J or Option F ? Answer only \"J\" or \"F\"\n\nAnswer: "
49
 
50
  #print(f"Below is the prompt for Player {player} and Round {round_num}:\n {prompt}")
51