Jan-02-2023, 09:39 PM
(This post was last modified: Jan-06-2023, 12:44 AM by Yoriz.
Edit Reason: removed unnecessary quote of previous post
)
Now it's a great solution! Thanks again!
Do you know maybe how can I set some time between my turn and computer's turn (I want to make the computer playing its move 1 second after me (for example))? I tried "time.wait(1000)" either in robot.play() function or in while loop in the main() function but nothing worked. I just succeeded to make it a second before both turns together.
Also, I wanted to print the winner under the board (for example: "You win!", "Computer wins"), tried with winner = font.render(...) and winner.get_rect() but I just keep getting errors.
Do you know maybe how can I set some time between my turn and computer's turn (I want to make the computer playing its move 1 second after me (for example))? I tried "time.wait(1000)" either in robot.play() function or in while loop in the main() function but nothing worked. I just succeeded to make it a second before both turns together.
Also, I wanted to print the winner under the board (for example: "You win!", "Computer wins"), tried with winner = font.render(...) and winner.get_rect() but I just keep getting errors.