Jump to content
MakeWebGames

Recommended Posts

Posted

What are your thoughs and opinions about this?
Like i decided at long last to try it out and see what it can do and i managed to get it to make this....
 

<!DOCTYPE html>
<html>
<head>
	<title>Calculator</title>
	<style>
		body {
			font-family: Arial, sans-serif;
			background-color: #f2f2f2;
		}
		
		.container {
			margin: 50px auto;
			padding: 20px;
			background-color: #fff;
			box-shadow: 0px 0px 10px #ccc;
			border-radius: 10px;
			text-align: center;
			width: 300px;
		}
		
		h1 {
			margin-top: 0;
			font-size: 36px;
			color: #333;
		}
		
		input {
			display: block;
			margin: 10px auto;
			padding: 10px;
			border: none;
			background-color: #f2f2f2;
			width: 80%;
			border-radius: 5px;
			font-size: 18px;
			text-align: right;
		}
		
		.button-container {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			margin: 10px auto;
			width: 80%;
		}
		
		button {
			padding: 10px 20px;
			border: none;
			background-color: #333;
			color: #fff;
			font-size: 18px;
			border-radius: 5px;
			cursor: pointer;
		}
		
		button:hover {
			background-color: #555;
		}
		
		button:active {
			transform: translateY(2px);
		}
	</style>
</head>
<body>
	<div class="container">
		<h1>Calculator</h1>
		<input type="text" id="result" disabled>
		<div class="button-container">
			<button onclick="clearScreen()">C</button>
			<button onclick="backspace()">BACK</button>
			<button onclick="insert('+')">+</button>
			<button onclick="insert('-')">-</button>
			<button onclick="insert('*')">*</button>
			<button onclick="insert('/')">/</button>
			<button onclick="insert('7')">7</button>
			<button onclick="insert('8')">8</button>
			<button onclick="insert('9')">9</button>
			<button onclick="insert('4')">4</button>
			<button onclick="insert('5')">5</button>
			<button onclick="insert('6')">6</button>
			<button onclick="insert('1')">1</button>
			<button onclick="insert('2')">2</button>
			<button onclick="insert('3')">3</button>
			<button onclick="insert('0')">0</button>
			<button onclick="calculate()">=</button>
		</div>
	</div>
	<script>
		function insert(num) {
			document.getElementById("result").value += num;
		}

		function clearScreen() {
			document.getElementById("result").value = "";
		}

		function backspace() {
			var input = document.getElementById("result");
			input.value = input.value.slice(0, -1);
		}

		function calculate() {
			var input = document.getElementById("result");
			var result = eval(input.value);
			document.getElementById("result").value = result;
		}
	</script>
</body>
</html>

TBH i'm pretty amazed that it was able to produce this and actually work.... Where could this go. Could we ALL be out of jobs?

Posted (edited)

welcome to the dark side 🙂 been using it myself as well as github co pilot. Has helped me loads when having to fix or bug test my amazing code haha.
Feel that co-pilot has helped speed up writing code.
I don't think it'll be to long before all developers/coder or whatever will be using AI.

Edited by corruptcity || skalman
  • 3 years later...
Posted

Question Id like to ask in here..

1 = What do you actally ask for it to make a php game

2 = does it do it straight away or do you have to copy and paste what it  provides

3 = I have a game id like chatgpt to convert from php 5 to php 8 can it do it ?

4 = Ive asked enough questions in here hope to hear from ya soon..

 

Posted
On 7/26/2026 at 7:00 AM, Uridium said:

1 = What do you actally ask for it to make a php game

"I would like to create a browser-based text RPG, using PHP and MySQL as the backend. It must have these features [describe them]"
 

On 7/26/2026 at 7:00 AM, Uridium said:

2 = does it do it straight away or do you have to copy and paste what it  provides

That depends on where you're using it. If you're using a browser version, chances are you'll be copy/pasting. If you're using a plugin with your editor (Junie for JetBrains, for example, or a Claude API extension in VSCode), then you can instruct it - after granting permissions - to add/edit/delete files at will

 

On 7/26/2026 at 7:00 AM, Uridium said:

3 = I have a game id like chatgpt to convert from php 5 to php 8 can it do it ?

Yes. Migration shims have existed for years. No public-facing AI is generative (even if it claims to be) as they're fed source material and "create" from that. Everything is regurgitated without context. So, with that in mind, the existence of a shim being publicly available (Git), and the simple ability to read, an AI could update PHP5 to PHP8 practices. Be sure to specify which version of PHP8. For example; 8.3 introduces a number of breaking changes to code that would otherwise be fine in PHP8.2 (current latest is 8.5.8 and I loooooooove the deprecations - can do so much more with so much less now!



Let it be known that I bloody well hate AI and the ego a number of self-entitled "developers" (vibe coders) seem to pack with it. Studies by MIT have shown that those who depend on AI incur up to a 47% drop in connectivity and engagement, combined with a 32-ish% decrease in critical thinking and short-term memory recollection.
I'm not stopping you from using it, nor am I trying to dissuade you. It is a tool like any other and, like any other, it can be misused. 
All I can advise, strongly, is that you don't let robots think for you

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...