▲ 35 r/VGC

What mons are worth having multiples of in Champions? [Metagame]

Have one of everything from the National Dex but don't know the meta super well. It seems like most Pokémon have a narrow range of builds. I'm looking for the opposite - Pokémon that are worth keeping a duplicate of, trained in a different manner. Thank you

reddit.com
u/ZGAEveryday — 3 days ago
▲ 9 r/tea

interesting brewing instructions on this tin of Oolong

20g of tea for a 200ml pot! that's 1:10.

I'm all for strong tea but that's ridiculous, even for flash steeps which they are certainly NOT recommending at 40-60 seconds per infusion.

u/ZGAEveryday — 22 days ago

help with syncing multiple drones on Cactus

I successfully learned how to parallelize tasks with multiple drones, by splitting them up by into different rows:

def Grass():
	for i in range(get_world_size()):
		if can_harvest():
			harvest()
		move(North)

clear()
while True:
	if not spawn_drone(Grass):
		Grass()
	move(East)

However, I'm having difficulty with the cactus sort. The first problem is that different rows take different lengths of time to complete, which is expected. I don't know how I'm supposed to sync them up. I see there's a wait_for() function, but I can't get it to work. The syntax just isn't working. How do I determine which drone is which? For example, I need to be sure all 4 drones are finished before harvesting, not just one of the drones waiting for one of the other three.

The second problem is simpler and I just need another set of eyes. I know drones terminate when their function ends. The sort_row() function should just end once the while loop get_pos_x() != (ws-1): ends. (After one more measure comparison for the final tile of the row, which is why I ordered them that way.)

Here's what I'm working with. You can see it fails after the first set of 4 drones sorts the first 4 rows, then the transition into the next set of 4 fails spectacularly. I can't help but wonder if this is related to the syncing/waiting problem.

I'm on a 16x16 grid with 4 drones.

waterLevel = 0.7

def water():
	while get_water() < waterLevel:
		use_item(Items.Water)
	
def plant_cactus():
		for j in range(ws):
			if get_ground_type() != Grounds.Soil:
				till()
			plant(Entities.Cactus)
			water()		
			move(North)	
	
def sort_row():
	while get_pos_x() != (ws-1):
		move(East)
		while measure(West) > measure() and get_pos_x() != 0:
			swap(West)
			move(West)					
		
def sort_col():
	while get_pos_y() != (ws-1):
		move(North)
		while measure(South) > measure() and get_pos_y() != 0:
			swap(South)
			move(South)

clear()
while True:
	#plant
	for i in range(ws):
		if not spawn_drone(plant_cactus):
			plant_cactus()
		move(East)
		
	#sort rows
	for j in range(ws):
		if not spawn_drone(sort_row):
			sort_row()
		move(North)
		
	#sort columns
	for k in range(ws):
		if not spawn_drone(sort_col):
			sort_row()
		move(East)
	
	#harvest, but only once the column sort finishes?
	harvest()

When testing a single row, the row sort function stops when it's supposed to! So why doesn't it work when 4 rows are going at once? The planting function is 4 at once, and that works fine. Note that I can't do the classic for i in range(get_world_size()) because I'm going back and forth so much with the swapping.

def sort_row():
	while get_pos_x() != (get_world_size()-1):
		move(East)
		while measure(West) > measure() and get_pos_x() != 0:
			swap(West)
			move(West)

sort_row()
reddit.com
u/ZGAEveryday — 24 days ago