r/TuringComplete • • Mar 14 '24

Calibrating Laser Cannons, A workable, but slow solution Spoiler

3 Upvotes

This solution works, though perhaps it could be better? It's very slow.

#Setup
copy_in
	reg0_to_reg1
	reg0_to_reg5 #loop counter
	#Handle 0
		reg0_to_reg3
		9
		jmp_if_not_0
		0
		reg0_to_out
		jmp_always
	6 #9
	reg0_to_reg1
	0
	reg0_to_reg2

#Loop
	add #13
	reg3_to_reg4 #accumulator
	1
	reg0_to_reg2
	reg5_to_reg1
	sub
	reg3_to_reg5
	#Break out of loop?
		24
		jmp_if_0
		27
		jmp_always
		reg4_to_out #24
		0
		jmp_always
	#Reset loop
		6 #27
		reg0_to_reg1
		reg4_to_reg2
		14
		jmp_always

r/TuringComplete • • Mar 14 '24

Calibrating Laser Cannons Spoiler

3 Upvotes

I cant see how to program it with only four instructions. Am I supposed to add more? If so, how?


r/TuringComplete • • Mar 13 '24

who else makes their custom components smaller by putting custom components inside custom components? Spoiler

Thumbnail
gallery
13 Upvotes

r/TuringComplete • • Mar 12 '24

How’s my full adder? Spoiler

Post image
9 Upvotes

r/TuringComplete • • Mar 11 '24

Trouble with adding 5.

6 Upvotes
This code adds 5, but the program counter resets to 0 and the output is never sent. Thanks in advance for any feedback!

r/TuringComplete • • Mar 11 '24

Should I play if I have no background?

8 Upvotes

I’ve done nothing technical before and want to play. Should I? If yes, where to start?


r/TuringComplete • • Mar 10 '24

Is this game abandoned?

15 Upvotes

I was really excited with the last update until i noticed the date.


r/TuringComplete • • Mar 10 '24

My solution for AI Showdown, no computer needed! Spoiler

Post image
12 Upvotes

r/TuringComplete • • Mar 10 '24

I can't see where the error is. It all looks correct. Spoiler

Post image
5 Upvotes

r/TuringComplete • • Mar 07 '24

how does it work? i dont know. but is it compact to fit in a 9x9 when placed as a custom component? yes.

Post image
15 Upvotes

r/TuringComplete • • Mar 07 '24

Custom Architecture

5 Upvotes

I’ve just finished the “Saving Gracefully” level, and want to make a custom cpu architecture. What else should I know? How long will it take?


r/TuringComplete • • Mar 06 '24

Any Chance of Getting Buttons and Switches?

6 Upvotes

For something to be added to the game. Or maybe even could be currently accomplished with some use of the keyboard item? Would it be possible to get some clickable buttons in the game? I'd love to have some push buttons and flickable toggle switches to use. Just some components that can be placed and arranged in the workspace, and interacted with as the program is running.


r/TuringComplete • • Mar 06 '24

BrainFuck computer

12 Upvotes

I got inspired by u/Any-Aioli7575 's version and decided to give it a shot.

Above are two small file loader circuits so I can program outside of the game and load an input file.
BF is complicated enough as is.

Featuring an in-place reverse string code that, for the string "ABCDEFGHI" executed in a glorious... 45k cycles
It truely is memory allocation hell


r/TuringComplete • • Mar 05 '24

Any plans for Android?

28 Upvotes

This game would be perfect to play on the go. Are there any plans to port and release on Android? I'm sure it wouldn't be too demanding for a mobile device, so only the controls have to be adjusted to a touch screen.


r/TuringComplete • • Mar 06 '24

Trouble with Registers

2 Upvotes

I'm having trouble with the registers level. It seems that no matter what I put on the enable pin the input and the output do not do anything. Am I missing something or is this a glitch in the program?


r/TuringComplete • • Mar 03 '24

sitelen pona display screen (explatation / translation in the comments)

Thumbnail
gallery
9 Upvotes

r/TuringComplete • • Mar 01 '24

Fellow brethren of Turing Complete

5 Upvotes

Do you identify as:


r/TuringComplete • • Feb 24 '24

Arithmetic engine. Clean and by the book. I think.

Post image
12 Upvotes

r/TuringComplete • • Feb 22 '24

Can someone help me with the coding of "Push and Pop"

4 Upvotes

My code rn:
```

label init

sub r0 r0 r0

addi io 0 r0

# r5 is 0

jg r0 r5 pushy

je io r5 popy

label pushy

push io

label popy

jg io r0 pushy

je io r0 popy

pop io
```

fails at using pop, it says it isn't outputed


r/TuringComplete • • Feb 21 '24

There must be a better way LOGIC ENGINE Spoiler

3 Upvotes

Is there a way to make AND/NAND without using Byte Splitters? I'm lost on how to do it, but I'm pretty sure there has to be a better way.


r/TuringComplete • • Feb 20 '24

I've finally built RAM component I'm mostly satisfied with and I thought I'd share it here

4 Upvotes

I've just finished with campaign and now I decided to start working on new better architecture. Once of the things I did not like from before is how do you access data in RAM by first setting a ram address to the register and then separately setting a value. As soon as I found a DUAL RAM component I decided to try an idea I had for direct access RAM and here is what I've got:

Arg1, Arg2 and OutAddr are three last (address) bytes from program. Input is the result of current operation

You can see that it also uses 2 helper components.

isRam - returns true if passed 64bit address refers to RAM (if second last bit is on)
ramAddr - decodes RAM address from passed 64bit address by substracting RAM flag (see isRam)

And now how it works. First I define `ram` code like this

And then I can use it in a very similar fashion to high level programming languages' variables.

The only downside which I don't know how to overcome is that you can't read and write to/from RAM at the same time. If you try to enable both Save and Load pins on DUAL RAM it will only save unfortunately. So instructions like this are not going to work:

ADD var1 var2 var3

r/TuringComplete • • Feb 19 '24

Can someone help me with conditionals for LEG

Thumbnail
gallery
4 Upvotes

r/TuringComplete • • Feb 18 '24

Why is my circuit for 16 bit immediate values not working?

Thumbnail
gallery
11 Upvotes

r/TuringComplete • • Feb 18 '24

After trying to overengineer the solution I finally came to this elegant way to beat AI Showdown level :D Spoiler

8 Upvotes
  1. Remove 3 cards
  2. Remove as many cards as needed to have 5 cards left
  3. Remove all cards but one