ChatGPT!!!!!

andymc

Well-Known Member
Licensed User
Longtime User
Okay, I need to calm down, I've just spent two hours typing things into chatgpt : https://chat.openai.com/chat
this thing is incredible! It can answer pretty much anything you cant think of! It's almost scrary.

I've asked it for examples on writing B4a code with the libgdx library, and it worked! I even asked it to write some Amstrad CPC basic code and it can write that too! You can talk in plain english and it works! Check this out:

1670199790428.png


and then, to make it even more amazing!!!
1670199900374.png
 

Magma

Expert
Licensed User
Longtime User
...hey! this is very close at my wish... before 2 years !

 

RJB

Active Member
Licensed User
Longtime User
Too much to hope for I suppose:
b4r1.jpg


Attempt 2:
b4r2.jpg


But not at all bad attempts!!!
 

Magma

Expert
Licensed User
Longtime User
In reality i was hoping that thread was fake... or a prank... but...

Thought that was a "fake bot"... or at least a team (including as leader the Erel) answers thousands of questions in seconds...

1670235545212.png

*Here is the special team of Erel - answering fast all the b4x questions...
 

magicmars

Member
Licensed User
1670272536088.png


Unfortunatly there is no "Duration" property in the CircularProgressBar module (I believe).
 

magicmars

Member
Licensed User
I asked :
"write me a class in B4X of a car than can be driven and be crashed. This car will have a energy level bar and stamina increase of the player"

GPT reply :
" Here is an example of a class in B4X that defines a Car object that can be driven and crashed:
B4X:
' Define the Car class
Sub Class_Globals
    ' Declare variables to store the car's properties
    Private mEnergy As Int
    Private mStamina As Int

    ' Define a constant for the maximum energy level
    Private Const MAX_ENERGY As Int = 100

    ' Define a constant for the amount of stamina gained per second of driving
    Private Const STAMINA_INCREASE As Int = 1
End Sub

' Define the class's constructor, which initializes the car's properties
Sub Initialize
    mEnergy = MAX_ENERGY ' Set the initial energy level to the maximum
    mStamina = 0 ' Set the initial stamina to 0
End Sub

' Define a method to drive the car
Sub Drive
    mEnergy = mEnergy - 1 ' Reduce the energy level by 1
    mStamina = mStamina + STAMINA_INCREASE ' Increase the stamina by the specified amount
End Sub

' Define a method to crash the car
Sub Crash
    mEnergy = 0 ' Set the energy level to 0
    mStamina = 0 ' Set the stamina to 0
End Sub

' Define a method to check whether the car is still operational
Function IsOperational As Boolean
    Return mEnergy > 0 ' Return whether the energy level is greater than 0
End Function

' Define a method to get the current energy level
Function GetEnergy As Int
    Return mEnergy ' Return the current energy level
End Function

' Define a method to get the current stamina level
Function GetStamina As Int
    Return mStamina ' Return the current stamina level
End Function

This class defines a Car object with properties for energy level and stamina, as well as methods for driving, crashing, and checking the car's operational status. The Drive method reduces the car's energy level by 1 and increases the stamina by the specified amount, while the Crash method sets the energy and stamina to 0. The IsOperational method returns whether the car's energy level is greater than 0, and the GetEnergy and GetStamina methods return the current values of these properties. You can use this class in your B4X code to create Car objects and interact with them. For example, you could create a new Car object like this:


B4X:
Dim myCar As Car
myCar.Initialize
You can then use the methods of the myCar object to drive and crash the car, check its operational status, and get its current energy and stamina levels. Note that this code is just an example and may need to be adjusted to suit the specific needs of your project."


Skynet is nearly here o_O
 

magicmars

Member
Licensed User
I asked :
"Write a great fictional story about a boy who is gifted in computer science, but who was never recognized. He would spend his time in his basement trying to come up with a revolutionary altruistic idea that would help humanity. He would succeed, not without difficulty, with the help of a computer and good friends. He would program a code in B4X and publish an application on Google play. An altruistic application, brotherly benevolent of others, and of peace and not, self-centered on the ego of people. Quickly everyone downloaded his application. Develop the next world, with everyone having their own application. How is this world better? The end is good"


GPT reply :

Once upon a time there was a boy named Alex. Alex was passionate about computers and spent hours in his basement learning new things about computers and trying to create innovative programs. Unfortunately, no one seemed to notice his talents and he often felt ignored and looked down upon.

One day, Alex had a revolutionary idea: he was going to create an application that would help people be more kind to each other. He got to work, and with the help of his friends, he developed an application using the B4X programming language.

The application was simple, but ingenious. It allowed people to share positive thoughts and acts of kindness with their friends and family. It encouraged people to be more caring and nurturing of each other.

Alex released the app on Google Play, and it quickly gained popularity. Soon, everyone was downloading the app and sharing it with their loved ones. The app had become a phenomenon, and Alex was finally recognized for his computer skills.

The world started to change because of Alex's application. People were more caring towards each other, and human relationships were healthier and happier. Conflicts and tensions were reduced, and a sense of peace and brotherhood took hold.

Alex was proud to see the positive impact his application had on the world. He continued to work hard to improve the app and to help people be even more caring.

The world had become a better place because of Alex's app, and everyone was happy and grateful to him. Alex had finally found his place in the world and was recognized for his talents and work. It was a happy ending for everyone.

o_O???
 

Num3

Active Member
Licensed User
Longtime User
WTF ?
Just typed, "can you speak portuguese"
Yes it can, and with perfect grammer 8O

Sim, posso falar português. Eu sou um modelo de linguagem treinado pela OpenAI e posso falar vários idiomas, incluindo o português. No entanto, como sou apenas um modelo de linguagem, não posso ter uma conversa realmente fluida em qualquer idioma. Eu posso responder perguntas e fornecer informações sobre um amplo conjunto de tópicos, mas minhas respostas serão sempre baseadas em informações pré-existentes e não refletirão qualquer nova informação que eu possa ter aprendido desde que fui treinado.
 
Top