Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ai generated code

A topic by Blavity01 created Feb 28, 2024 Views: 1,760 Replies: 22
Viewing posts 1 to 10
(+3)(-5)

How can you know if a piece of code is ai generated?

Submitted(+9)(-2)

certainly not a suspicious thing to ask lol

(+3)

nah im totally not gonna use ai at all, im just curious because if you ask ai and a human to write hello world in python its gonna be the same.

(-3)

I copied from severall answers from Quora(only the ones made by ChatGPT  because -> no copyright):

  •            Unnatural coding formatting (pretty self explaning)
  •             Generic, boilerplate code (Code that you write and reuse with little or no alteration)
  •            Overly Complex solutions (when the code "kill a mosquito with a ballistic missile")
  •            Lack of comments in code

In my opinion,(not accusating but in third person) you shouldn't generate code with AI, both for ethical reason, and for technical reasons(the code is shitty).

(+8)

"Lack of comments in code" that sounds like me.

(+7)

that what humans do literally 

(+10)

chat gpt often provides comments, and copy pasty boiletplate code is definitely a thing humans do. my opinion is that in game jams generally stick to believing that people participate in good faith, i think generally trying to find things that 'look kinda ai generated' and punishing them is a bad idea

(+2)

For the record I don’t use AI to generate my production code but I did use AI to help me learn a shader technique a while ago when I got stuck and ChatGPT was really useful in suggesting ways to make it work, and by allowing me to ask questions on each section. I would use it again.

Should I avoid using that shader technique in the competition?

There are professional devs who now code with CoPilot, and some of them don’t even consider it AI code any more than artists think of the content aware fill as AI, because they’re reading and adapting or curating the AI code apparently, or whatever it is they think that separates them from machines - I really don’t know, it takes me longer to read bad code than to write bad code so I never tried copilot!

But ultimately, we are just a machine doing the toil necessary to satiate the ever growing hunger of the corporate masters doing the work of many in the pursuit of efficiency, we’re just a machine with a meat bag casing. That ain’t special, the Dinosaurs tried it before us and where are they now? Anyway, as long as there is a law demanding people wear seatbelts there will be people protesting that it takes away their freedom, but the only real freedom is to be a corporation - to be the machine that consumes the production of the machines.

Well blast, I guess I’m leaning toward a cyberpunk aberation entry…

Good game idea

Submitted(+4)

nah a lack of comments isn’t a huge sign of AI code


I don’t leave many comments for myself either, and I don’t use AI code so they’re not really linked

(+1)

Especially considering this is a jam specifically geared towards solo developers - not having comments is honestly to be expected outside of complex chucks that aren't self-explanatory.

(+5)

AI:

print("Hello, world!")

Me:

print('Hello world')


There's a difference

(+5)

Ai:

print("Hello World!")

Me:

print("Ello Ello Ello")
Submitted(+2)

Me:

>>> print "Hello, world!"
  File "<stdin>", line 1
    print "Hello, world!"
                        ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Hello, world!")?
(+4)(-9)

[Text translated by AI] ;-p

Everyone uses AI nowadays. Denying that is dishonesty and/or ignorance.

Even if it's due to an error with something we're not very familiar with or to speed up the research of something that would require a good few minutes of documentation to understand the application.

If someone manages, within the short timeframe offered by a game jam, to create something that suggests the presence of artificial intelligence, that person demonstrates true competence. Artificial intelligence, up to the present moment in 2024, is not capable, by itself, of connecting the elements that make up a game.

A mediocre programmer may be able to use AI effectively, but not efficiently. It's one thing for AI to solve a problem of an algorithm, if a game jam were limited to that, it would be completely unfair, but that's not the case. However, a game goes beyond that. Using AI to speed up processes and identify errors is valid.

However, employing AI in game creation will not turn a bad idea or concept into a AAA game.

[Texto original]

Todo mundo usa IA hoje em dia. Negar isso é desonestidade e/ou ignorância. 

Nem que seja por conta de um erro com alguma coisa que não se tem tanta familiaridade ou pra agilizar a pesquisa de algo que precisaria de uns bons minutos de documentação para se saber a aplicação.

Se alguém conseguir, dentro do breve prazo oferecido por uma game jam, criar algo que sugira a presença de inteligência artificial, essa pessoa demonstra verdadeira competência. A inteligência artificial, até o momento presente em 2024, não é capaz, por si só, de conectar os elementos que compõem um jogo.

Um programador medíocre pode até usar a IA de forma eficaz, mas não de maneira eficiente. Uma coisa é a IA resolver um problema de um algoritmo, caso uma game jam se resumisse a isso, seria completamente injusto, mas não é o caso. No entanto, um jogo vai além disso. Utilizar IA para acelerar processos e identificar erros é válido.

Contudo, empregar a IA na criação de um jogo não transformará uma ideia ou conceito ruim em um jogo AAA.

(3 edits) (+1)

[AI TRANSLATED TEXT]

I think the prohibition of AI is about the direct use of anything generated by AI, for example:

  • Imagine an image of a running skeleton.
  • Write a C# algorithm that detects collisions and which collider is involved using raycasts.
  • Create a class with the following attributes in Java: “attr1,” “attr2.”

But now, if it’s something like:

  • I received an OutofMemoryError when trying X, what could be the cause?
  • My idea is the following: <<your idea here>> from a critical and realistic perspective, give me pros and cons.
  • How is a procedural dungeon system usually coded? // Then follow the explanation without copying the code, of course.

It all depends on your mindset, but I honestly only use AI to teach me. Seriously, I can’t be so foolish as to use AI as if it could replace me. If it can do it on its own, why would my boss need me? I think anyone with a brain can understand that.

Have a great jam day, everyone.


[TEXTO ORIGINAL]

Acho que a proibição de IA se trata do uso direto de qualquer coisa gerada por IA como por exemplo:

  • Imagine uma imagem de um esqueleto correndo.
  • Escreva em C# um algoritmo que detecte por meio de raycasts quando colide e qual é o colisor.
  • Crie uma classe com os seguintes atributos em Java: “attr1”, “attr2”.

Mas agora se for algo como:

  • Recebi um OutofMemoryError ao tentar X, o que pode ser a causa?
  • Minha ideia é a seguinte: <<sua ideia aqui>> do ponto de vista crítico e realista, me dê pros e cons.
  • Como normalmente é programado um sistema de dungeons procedurais? // E aí seguir a explicação e não copiar o código, é claro.

Tudo depende da sua mentalidade mas eu sinceramente só uso IA pra me ensinar, sério, eu não consigo ser a burro a ponto de usar IA como se ela pudesse me substituir, tipo, se ela consegue fazer sozinha, por que meu chefe precisaria de mim? Acho que qualquer um com cérebro consegue entender isso,

Um bom dia de jam a todos.

(+1)

You should ask chatGPT  :p

Submitted(+2)

The only definitive sign is if they leave in those comments that always come with AI code like “#Secondly, we add move_and_slide() to the bottom of our function.” 

(+2)

Probably the biggest pointers are very literal script and variable names, comments that walk you through the code, and very organized layout. A script called "Bruh" with a DaMoovementFawrce variable is probably written by a human...

(+4)

Note to self: Write code as incoherently as possible so people don't think I'm using AI

(+2)

Newbies that use it won't notice the irregularities that occur with ai, experienced people won't use it because of how flawed it is.

(+1)

I think it's unlikely that an experienced person would use AI to write a whole code, but to simplify or find a solution to a problem it's quite common. AI makes it much faster to resolve some errors.

(+1)

They have experienced people or peers to correct them in a specific manner. AI is too erroneous for it to be used properly.