Second Helpings

And just for fun and to prove it can be done easily, I just made two games using AI in just a few minutes. Check out how similar the file structures are, and how similar some of the design and feel decisions are.

Obviously Taylor spent a lot longer polishing their game, so these aren’t comparable to their much better work, but consider them proof that making simple JS games using AI is possible.
Thanksgiving.zip (19.5 KB)
Office Diet Dilemma.zip (10.8 KB)

you’re really not proving proving me wrong here

guys this game is AI! 
how do i know it is? just look at these AI games!
2 Likes

You realize someone with experience is most likely to have the knowledge required to catch liars, right? Like Houdini exposing all those fake psychics because he knew how their tricks worked.

I’m still not sure what these tricks I’ve pulled are. It’s just straightforward Javascript, you say ‘state-of-the-art’ and such, but I don’t personally agree that standard modern Javascript code is all that difficult to write. You say I’ve been clumsy in the overall design of it & I’m sure I have. The code is just lots of functions grouped by type into sections.

I’m sure AI outputs something similar, because its a very basic way of writing code, is it not? How would you do things?

6 Likes

you are also talking to someone who has experience (not in javascript, unfortunately. enough to know what im looking at)
its possible for someone to both be good at code on a fundamental level, but shit at organization.
edit: this problem is also much more likely if you’re putting everything in a single script. and for a game of this size organization problems wont catch up with you. its only 5.5k lines, still easy to find your way around. i’d expect organization problems to become “unfeasible for human devving” at ~20k.
also actually taking a look at your generated games and the SH, both genned games laid out exactly the same while SH’s code layout is completely different.

3 Likes

The problem is you can google the answer to any question I might ask you, even if I don’t believe you could understand a lot of what you’ve “written.”

With that said, and just for fun, what would you say is your philosophy when it comes to multi-word variable/function/data names?

My philosophy is that the most important part of a name is being able to read it and understand what it represents; i.e. what that variable, function is for. So I’m fine with using as many words as necessary to achieve that.

2 Likes

Hint: If you’d even been hobby programming for any length of time, you’d know that’s not at all the question I was asking.

This is “tabs or spaces?”-level basic.

There’s no pleasing you is there.

3 Likes

Well, you’re wrong. I’ve never had any training, I’ve never attended a bootcamp, neither do I have a Computing degree. I’m sure there’s plenty of design philosophies or whatever else that fly over my head. I’ve taught myself and I keep working on my code until it does what I want and every bug I find is fixed.

I’m not lying that I’ve been coding for a long time.

2 Likes

Right now, Taylor’s desperately googling to try and understand why the AI wrote the code the way it did, even on this extremely basic question.

I’m not Googling anything. I’ve given you my answer and I don’t care if you think its wrong.

8 Likes

no, no. im lost too.
what exactly did you mean by that?

1 Like

Right. But the thing is, your code shows some really clever and subtle rules around formatting that are either the result of someone with an explicit style guide they follow religiously, or a bot following its own best practices.

It uses camel case, snake case, and separated words all at the same time, but for slightly different purposes, never once breaking its own complicated set of rules for what should be used where.

Basically, the code doesn’t look self-taught at all, it looks like it was written by a team of corporate programmers with managers looking over their shoulders, except for the fact that the organization is practically impossible to follow.

(This is a good exercise for teachers too. One of the only still viable ways to detect plagiarism in this day and age is to ask a student to explain their reasoning for something clever they did.)

It’s not that clever, its just called being consistent…

Your use of the word philosophy was far too vague.

3 Likes

Right, but I’d give even odds you still wouldn’t be able to explain why, even with unlimited time to come up with a plausible lie.

You’re right, I can’t explain why certain naming formats are used. I just do it as I see online when I’m checking the docs etc.

1 Like

While I don’t doubt that there’s probably some possibility of AI use, nothing that you’ve said indicates anything.

Especially this point is likely resulting from the fact (which they stated to you outright) that nearly everything is copy/pasted dozens of times across all the different categories, which is pretty much exactly what an amateur programmer would do.

An amateur programmer would also google different problems and probably directly copy/paste the solutions then edit them according to their needs, or lean heavily on the documentation. I assume that probably happened here whenever Taylor needed to figure out how something worked.

That said I’m no front-end developer (frankly I’m more familiar with PDPs than HTML, although I dabbled with it a little years ago) and I’m not home to look at the code more comfortably and with easy search tools, but from a tiny phone screen everything looks to about match up with Taylor’s description of their work. It’s not very consistent, but they probably kept throwing solutions at it until one worked. It’s also notable that these online solutions are the exact same ones that have been hoovered up by AI and regurgitated, as your examples demonstrate.

5 Likes

never once breaking its own complicated set of rules for what should be used where.

… and if you’ve been coding for a while thats exactly the kind of habit you develop, sometimes you dont even have a reason for your specific coding quirks or its been so long that you forgot why you do.
for example, the vast majority of my variables are camelcase with the first word uppercased, but all of my script references start with a lowercase, its such a minor insignificant thing and yet i do it anyways.
and if you wanna get this anal about formatting, then i should point out that SH uses capslock snake casing for constants, while both games you generated use camelcasing starting with a lowercase for constants.

7 Likes