|
|
|
|
|
by postalcoder
336 days ago
|
|
It's likely you're running into "too deep into mediocre code with unclear interfaces and a lot of hidden assumptions hell" that LLMs are generally poor at handling. If you're running into an inextricable wall then it's better to do a controlled demolition. ie, take everything written by chatgpt and have the highest-quality model you have summarize what the game does, and break down all the features in depth. Then, take that document and feed it into claude. It may take a few iterations but the code you get will be much better than your attempt on iterating on the existing code. Claude will likely zero-shot a better application or, at least, one that it can improve on itself. If claude still insists on making up new features then install the context7 MCP server and ask it to use context7 when working on your request. |
|
I think I should have made it more clear in my post, the code is claude's and was done from scratch (the first app was a mandelbrot viewer which it added features to, this is a platfrom game).
It's a single file at the moment (I did give a suggested project structure with files for each area of responsibility) and it kind-of-works.
I think I could create the missing method in the class but wanted to see if it was possible by getting the tools to do it - it's as much of an experiment in the process and the end result.
Thanks for replying, I shall investigate what you've suggested and see what happens.