Create issues in GitHub on stuff that needs to be done
Start by setting up a development branch for this issue.
Something isn't quite right with the GPT generated code!
Let's debug!
Don't have a debugger?
Aaargh - you missed it, we set it up previously but here's another approach you can use:
- In the extensions, search for `@category:debuggers Python`
Install:
- Python
- Python Debugger
Right-click on each of them and from the context menu add them both to the devcontainer.
Add a breakpoint in line #18 of the rps-game.py script
Launch the debugger on the python file
Add the following watches
opponent
script_hand.name
args.hand
Now try to answer:
What hand did the game choose?
What hand did you chose?
What hand did you play?
Try to launch the debugger with the launch.json file (You haven't any yet, so the process will create one for your) choose Python Debugger >> Python File with Arguments and type in the argument --hand rock
Now you have a hand ...but it's not always that hand that is played.
Start by setting up a development branch for this issue.
Something isn't quite right with the GPT generated code!
Let's debug!
Don't have a debugger?
Aaargh - you missed it, we set it up previously but here's another approach you can use: - In the extensions, search for `@category:debuggers Python` Install: - Python - Python Debugger Right-click on each of them and from the context menu add them both to the devcontainer.Add a breakpoint in line
#18
of therps-game.py
script Launch the debugger on the python fileAdd the following watches
opponent
script_hand.name
args.hand
Now try to answer:
Try to launch the debugger with the
launch.json
file (You haven't any yet, so the process will create one for your) choose Python Debugger >> Python File with Arguments and type in the argument--hand rock
Now you have a hand ...but it's not always that hand that is played.
Let's keep and share the
launch.json
file:git
add
,commit
and deliver tomain