This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tinyboss's profile picture

[Contest] Fastest Cobble-Generating Turtle!

Started by Tinyboss, 13 September 2013 - 09:44 AM
Tinyboss #1
Posted 13 September 2013 - 11:44 AM
Tinyboss's Speedcobbling Contest


This is a contest to see who can use turtle(s) to generate cobblestone the fastest. Your turtle(s) must get some raw materials (of your choice, subject to limitations) from a chest, build whatever structure is needed, generate and mine the cobble, and finally deposit it into the chest.

Rules:
  1. Your mining turtle begins with an empty inventory, on the ground of a standard superflat world (grass, dirt, dirt, bedrock), facing a single chest.
  2. The chest may initially contain any amount of the following items: water bucket, lava bucket, empty bucket, stone (no longer allowed, because duh), sand, gravel, dirt, glass, wood, coal. If there are other basic blocks that people think they can make good use of, I'll consider adding them to the list, but redstone stuff is definitely not in the spirit of this contest.
  3. Fuel use is enabled. Include enough fuel in your chest loadout for your turtle to finish its job.
  4. The very first line of your program must save the current value of os.clock(), and the very last line must report the elapsed time (current time minus start time).
  5. When your program reports its elapsed time, the chest must contain the required number of full stacks of cobblestone, and nothing else.
  6. You can enter as many programs as you like. Each entry should be a post to this thread containing a name for the program, the division it's competing in, the initial contents of the chest (in order, left-to-right, top-to-bottom), the time it takes to finish, and a link to its source on Pastebin. Yes, you report your own time, but of course anyone is free to run your code themselves to check up on you.
  7. Taking someone else's program and tweaking it to improve the time is fair game, but you must clearly state whose program you're improving on (ideally by quoting or linking to their post in this thread). If you modify someone else's code without crediting them, you'll be disqualified.

World setup:
Develop your program with whatever mods you like, but it must be able to achieve its reported time under the following conditions:
  1. Creative mode, peaceful difficulty, standard superflat terrain (grass, dirt, dirt, bedrock).
  2. Minecraft version 1.62, with no mods except ComputerCraft 1.56.

Divisions:

Single stack - Fastest time to craft a single 64-block stack of cobble. This will favor a simple farm that doesn't take too long to get up and running.

Twelve stack - More of a long haul. An elaborate farm that takes longer to set up, but enables more efficient generation, can be worthwhile here.

Swarm - Fill up the chest (27 stacks), using as many wireless mining turtles as you like. This is for advanced programmers, and the following additional rules will apply (I'm very willing to revise the details if the advanced folks feel like it could be more fair and or interesting):
  1. Your overall time will be the actual elapsed time, multiplied by the number of turtles you use.
  2. Turtle 1 starts out facing the chest, with Turtle 2 immediately to its right, facing the same direction, Turtle 3 to the right of Turtle 2, and so forth.
  3. Every turtle must use the same program. The turtle's number will be given as a command-line argument.
  4. Turtle 1's program will be the one whose time is counted. The other turtles will be started first, but they must receive a signal from Turtle 1 before taking any action whatsoever (no movement, no inventory management, no computations, nothing at all).

Here's the starting position for the Swarm division:

Good luck and happy cobbling!

Standings:

Single stack
  1. 107.0, Tinyboss, Back-n-forth

Twelve stack
(no entries yet)

Swarm
(no entries yet)

Hall of Sneakiness
  1. MudkipTheEpic - single stack in 51.7, demonstrated why I was dumb for including stone as an approved starting material.
Tinyboss #2
Posted 13 September 2013 - 11:51 AM
And here's my entry, since one should never post a challenge without having done it themselves first:

Name: Back-n-forth
Division: Single stack
Chest loadout: Coal (1), Lava bucket (1), Water bucket(1).
Time: 107.0 seconds.
Source: http://pastebin.com/P3eEq8RE
Lyqyd #3
Posted 13 September 2013 - 02:59 PM
Moved to General.
apemanzilla #4
Posted 15 September 2013 - 12:02 PM
I'll have to try this! Expect an entry from me later!
MudkipTheEpic #5
Posted 15 September 2013 - 04:25 PM
Name: Loopholes FTW
Division: Single stack
Chest loadout: Stone (64).
Time: 51.7 seconds.
Source: http://pastebin.com/XWH0VDTE

Also 100% working, never fails when put under the specified circumstances in the OP.

:3
Tinyboss #6
Posted 15 September 2013 - 07:24 PM
Name: Loopholes FTW
Division: Single stack
Chest loadout: Stone (64).
Time: 51.7 seconds.
Source: http://pastebin.com/XWH0VDTE

Also 100% working, never fails when put under the specified circumstances in the OP.

:3

Haha, very nice! I'm not counting this, but you now own the first entry in the new "Hall of Sneakiness", i.e. people who showed me why my rules are dumb.
jay5476 #7
Posted 16 September 2013 - 04:41 PM
swarm is a bit unconveniant with grabbing fuel :/
but heres my entry
name: TURTLES!!!
division: single stack
chest loadout: 2 coal, 1 lava bucket, 1 water bucket
time: 102.95
source: http://pastebin.com/8qnquHMs
Booyaah #8
Posted 16 September 2013 - 11:48 PM
Hello CC forums.
This is my first time posting code but I've been around the forums for while.

I have 2 Entries:

Single Cobble Stack: pastebin get MPcxwJQJ SpeedCobbler
time: 57.85s
chest: 1 coal, 2 lava buckets, 1 water bucket

Full Chest: pastebin get N17L2bj2 BooyaahSpeedCobbler
time: 232.65s total (3 minutes, 52 seconds)
chest: 7 mining turtles, 1 disk drive, 1 disk, 8 coal, 2 water buckets, 16 lava buckets

I don't have any programming background so don't be surprised that the code is messy :)/>

-Booyaah
Myrddraall #9
Posted 18 September 2013 - 01:52 AM
Name: Tri-Force
Division: Single stack
Chest loadout: Coal (1), Glass (6), Water bucket (1), Lava bucket(3).
Time: 55.75 seconds (1.15 cobble per second)
Source: http://pastebin.com/E4pRHk3i


Name: Tri-Force x 12
Division: 12 stack
Chest loadout: Coal (1), Glass (6), Water bucket (1), Lava bucket(3).
Time: 403.4 seconds - 6 min 43.4 seconds (1.9 cobble per second)
Source: http://pastebin.com/33fsM7HN


Due to cobble spawning on random ticks the times varied accross multiple tests especially on the 12 stack. The time listed are the lowest times across 10 trials per devision