|
|
|
|
|
by mistermegabyte
1288 days ago
|
|
Pretty amazing stuff. I used this prompt to have ChatGPT write me a coin flip game in python that flips a coin x amount of times and displays the result: "create a game in python to flip a coin x amount of times and show the results when done"
It came back with python code that ran perfectly when saved into a .py file without having to make any changes. |
|
If you ask it to start adding in NPCs and fighting mechanics it will start doing that, too. I built a small "Canticle for Liebowitz"-themed text adventure in pieces- first asking it to add NPCs, then add a fighting mechanic, then add weapons to be wielded, then for the weapons to have damage ratings that matter. All I had to do was update the functions that it wanted to change, and add a few "global" declarations.