New games every week!
Moving Jay : Day 111 : All the Ones Blog
9th October 2023
Will we hear anything today? Not likely. The Solicitor doesn't "Do" Mondays.
Nnngh.

-=-=-

Yesterday, then, I took a sledgehammer to a huge chunk of GotoJSE, and though it hasn't sped anything up, it has at least allowed ChatGPT to do more with the language.

It kept trying to use the SetCol command with Hex RGB values.. SetCol #FF8800, and so on.
It kept trying to add _ at the end of a line to symbolise "This line continues on the next line"
It kept trying to use ' instead of // for remarks.
And a whole host of other such oddities.
Honestly, ChatGPT, what on earth!?!

So I went through and rejigged a few bits of JSE so that it could hopefully understand what ChatGPT's trying to do with it.
The resulting tweaks have been uploaded to the server, and a Poe.com chatbot has been created that can ... vaguely.. understand the language and output a half-decent result.

If you'd like to have a play with the chatbot, you can find it at Poe.com/JSEChat. It's far from foolproof, but it might come up with a few interesting suggestions.
It also keeps trying to fill-out arrays in a [a,b,c,d,e] manner.
I guess I should really try adding that function, but it's WAY too hard to figure out how to parse it!!
Hmmm..

A more specific list of the changes can be found over at SoCoder.
I apologise if I've broken anyone's code by making these changes.
If anything's not working, please do let me know.

Here's ChatGPT's attempt at making a Slalom game.
// GotoJSE Slalom Game // by JSEChat Graphics 800, 600 // Player position and movement variables PlayerX = ScreenWidth() / 2 PlayerY = ScreenHeight() - 50 PlayerSpeed = 5 // Slalom gates Dim Gates(10) GateWidth = 100 GateHeight = 20 // Initialize gates For i = 0 To 10 Gates(i) = Rand(0, ScreenWidth() - GateWidth) Next // Game loop Repeat CLS 0, 0, 0 // Draw gates For i = 0 To 10 Rect Gates(i), i * 50 + 10, GateWidth, GateHeight, 1 Next // Move player PlayerX = PlayerX + (GamePad(ButtonRight) - GamePad(ButtonLeft)) * PlayerSpeed // Check for collision with gates For i = 0 To 10 If PlayerY + 20 >= i * 50 + 10 And PlayerY <= i * 50 + 10 + GateHeight And PlayerX + 20 >= Gates(i) And PlayerX <= Gates(i) + GateWidth Then // Game over if player collides with a gate Message$ = "Game Over" MessageColour = #FF0000 Goto GameOver End If Next // Draw player Rect PlayerX, PlayerY, 20, 20, 1 Flip Forever GameOver: CLS 0, 0, 0 Text ScreenWidth() / 2, ScreenHeight() / 2, Message$, 1 Flip Wait 3 Goto End End: End


Doesn't work, but a decent start, I think.. Maybe..
Labels don't work like that, either. Ugh...


"Cartoon Derek feeds instructions into a boxy silver robot with bright green eyes, punched tape,1970s, long yellow ribbon of code, children's book illustration," by #DiffusionBee

.. But which one's the real Greenie?! .. Probably not the one with three arms.. right!?!
Views 56, Upvotes 15  
Daily Blog , Move , Jse
New games every week!
Site credits : PHP script, Blog posts, Games, Music, Pixelart, Poems and More : Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed 85

Blog - Moving Jay : Day 111 : All the Ones - AGameAWeek