←back to thread

577 points simonw | 3 comments | | HN request time: 0.612s | source
Show context
AlexeyBrin ◴[] No.44723521[source]
Most likely its training data included countless Space Invaders in various programming languages.
replies(6): >>44723664 #>>44723707 #>>44723945 #>>44724116 #>>44724439 #>>44724690 #
gblargg ◴[] No.44724690[source]
The real test is if you can have it tweak things. Have the ship shoot down. Have the space invaders come from the left and right. Add two player simultaneous mode with two ships.
replies(1): >>44727900 #
1. wizzwizz4 ◴[] No.44727900[source]
It can usually tweak things, if given specific instruction, but it doesn't know when to refactor (and can't reliably preserve functionality when it does), so the program gets further and further away from something sensible until it can't make edits any more.
replies(1): >>44727913 #
2. simonw ◴[] No.44727913[source]
For serious projects you can address that by writing (or having it write) unit tests along the way, that way it can run in a loop and avoid breaking existing functionality when it adds new changes.
replies(1): >>44728283 #
3. greesil ◴[] No.44728283[source]
Okay ask it to write unit tests for space invaders next time :)