It's Python rock paper scissors Please answer me

Asked 2 years ago, Updated 2 years ago, 17 views

It's the Python rock-paper-scissors that I made.

I'm asking you this question because I don't know which part and how to fix it after receiving feedback.

This is the feedback I got

Reflect player is a class that remembers what your opponent did in the last round (If I made a bogey in the first round, the reflect player made a bogey in the second round.) The cycle player is a class that remembers what you did in the last round (If I put out rock, I'll put out paper in the next round.)

How on earth should I fix it?

python

2022-09-22 11:12

1 Answers

def learn(self, learn_move)

There is one argument in the learn, and you are writing two arguments.

self.p1.learn((move2, move1)


2022-09-22 11:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.