This question had me trying to get ChatGPT to code a simple game.
My prompt was "Create a Tetris game using Java Swing". ChatGPT provided code. I copied the code into my IDE and found an entire missing class.
ChatGPT is basically a natural language search engine. If what it finds is wrong, its code will be wrong.