-
The farmer was replaced일상/게임 2025. 10. 11. 03:22
드론을 프로그래밍해서 농작물을 재배 수확하는 게임
예전에 학생 때 했던 스크래치 느낌이 난다. 환기용으로 좋다.
자원을 모아 새로운 Funtions이나 Syntax 잠금을 풀 수 있다.
https://store.steampowered.com/app/2060160/The_Farmer_Was_Replaced/
Save 20% on The Farmer Was Replaced on Steam
Program and optimize a drone to automate a farm and watch it do the work for you. Collect resources to unlock better technology and become the most efficient farmer in the world. Improve your problem solving and coding skills.
store.steampowered.com
더보기def get_current_least_item(): hay = num_items(Items.Hay) wood = num_items(Items.Wood) carrot = num_items(Items.Carrot) if hay < wood: if hay < carrot: return Items.Hay return Items.Carrot if wood < carrot: return Items.Wood return Items.Carrot def init_drone_position(): while get_pos_y() != 0: move(South) while get_pos_x() != 0: move(West) def move_drone(): current_x = get_pos_x() current_y = get_pos_y() currnet_map_size = get_world_size() is_row_odd = current_y % 2 if is_row_odd: if current_x == 0: move(North) else: move(West) else: if current_x == currnet_map_size - 1: move(North) else: move(East) from default import move_drone, init_drone_position, get_current_least_item change_hat(Hats.Traffic_Cone) clear() init_drone_position() move_count = 0 while True: currnet_collect_item = get_current_least_item() if can_harvest(): harvest() if currnet_collect_item == Items.Carrot: till() if get_ground_type() == Grounds.Soil: plant(Entities.Carrot) elif currnet_collect_item == Items.Wood: plant(Entities.Bush) else: continue move_drone()'일상 > 게임' 카테고리의 다른 글
메이플 유용한 것 정리 (0) 2022.08.24 메이플 코강 계산기(Python) (2) 2022.07.11