BCX + Claude = Amazing

Started by MrBcx, October 09, 2024, 06:12:53 PM

Previous topic - Next topic

MrBcx

I recently signed up for a month of Anthropic's Claude Pro for $22 USD.

"We" build a very playable game of Asteroids in under 2 days and only 600 lines of pure BCX code.

Check out the short video clip that I've linked below.

https://bcxbasiccoders.com/bcxusers/mrbcx/asteroids.gif

airr

That is very cool, and takes me back...waaaaay back....

AIR.

dragon57

Thanks for the nudge to sign up for Claude. Been meaning to do that for a while. Nice to have another gadget for my toolbox.

MrBcx

Quote from: dragon57 on October 10, 2024, 06:45:55 PM
Thanks for the nudge to sign up for Claude. Been meaning to do that for a while. Nice to have another gadget for my toolbox.

Here's a tip ... when having AI revise a FUNCTION or a SUB,  Claude, ChatGPT and others
often says

...

insert "new code" here, 
...

END IF
...
insert "new code" here, 
...

"rest of the code unchanged"

END SUB


Depending on the situation, it can get confusing, time consuming, and error prone to do all that cut/pasting,
but I just tell the chatbot, "Show me the entire revised listing for SUB So_and_So"  and the AI is more
than happy to oblige.


dragon57

I may have missed this, but does Claude know about BCX?

MrBcx

#5
Quote from: dragon57 on October 17, 2024, 01:44:02 PM
I may have missed this, but does Claude know about BCX?

Partly ... Claude has surprised me with its knowledge of BCX at times, for example it's knowledge of
BCX's builtin double buffering commands, and yet at other times it assumes something is a BCX function
that, in reality, doesn't exist.  Just today, CLAUDE gave me some code that relies on BCX_TRIANGLE. 
The problem being, there is no BCX_TRIANGLE runtime function.  Easy to fix but a little jarring at first.

Generally, if I want help building something, I will give Claude or ChatGPT some demo code that the AI
can see contains familiar BASIC function or a BCX specific function,  like BCX_FORM(), BCX_BUTTON(), etc.
The demo code can have completely unrelated purpose from what you're building.  Just sharing the right
demo code gives the AI's some knowledge of the built-in commands, functions, and syntax.

That's how I was able to complete 1,300 lines of code in 3 days building my version of Asteroids.

dragon57

Thanks, all presented gives me lots of ideas. It has been years since I coded in BCX, but once used it almost daily back in the early 2000's.