From Esolang
Jump to navigation Jump to search


I really want an implementation, but I’m too damn ỺẴẔỸ --Emerald (talk) 00:23, 11 May 2020 (UTC)

I just started work on a python interpreter, I regret it. --Emerald (talk) 17:15, 13 May 2020 (UTC)

Core concept being same as another

I am worried that another language has the dig construct... Random person! Can you help? --Emerald (talk) 19:09, 21 May 2020 (UTC)

Length of Duration Underground

How long does the mole stay underground? For the 'Hello world!' example, since the first two $ values is 9, the mole performs 8 underground actions. However, at the end of the same example, the value is 8, which is insufficient since the mole needs to perform 8 underground actions. I changed it to 9, but now I'm unsure. What makes me unsure is the fact that, in the cat example, the value is 2, but the mole performs 2 actions. For my interpreter, I choose the value - 1 interpretation.

Bangyen (talk) 05:02, 9 July 2020 (UTC)

The mole starts at 0 when encountering a $ the tile after that is 1. The last tile is executed, then you go back up. Hope that clears it up. --Emerald (talk) 14:41, 9 July 2020 (UTC)
So which example is correct? The ‘Hello World!’ example or the cat example? Bangyen (talk) 14:51, 9 July 2020 (UTC)
It seems Hello World is broken, also how do you use your implementation?
Edit: Both are correct.
--Emerald (talk) 15:06, 9 July 2020 (UTC)
If you go to my Github link and click on the ‘cell-based’ folder, you can download and run the program in the command line. The first argument should be the name of the file containing your dig program. Also, how can both examples be correct? If ‘hello world’ is correct, cat should contain a 3 instead, otherwise the mole surfaces too early and doesn’t execute the second underground command. If cat is correct, hello world should contain 8s instead, otherwise the mole surfaces too late and doesn’t execute the $ command. Bangyen (talk) 15:18, 9 July 2020 (UTC)
The Mole surfaces on $, what’s the problem? --Emerald (talk) 15:30, 9 July 2020 (UTC)
If you test my interpreter, you’ll notice that the mole doesn’t output for the cat program. If you go in and change move_num to value(position, code) - 0, the cat program will work but not the hello world program. Bangyen (talk) 15:45, 9 July 2020 (UTC)
--User:DeybisMelendez (talk) 15:32, 10 July 2020 (UTC)
You can count each instruction that continues after $
 8        8  0     8
You can watch my implementation: Dig.lua.
The main problem is how to count, you can count from 1 or 0 and the code will change, I think the correct thing would be to count from 0, so if the number is 8, it will count exactly 8 instructions below.