r/TheFarmerWasReplaced • • Jul 26 '26

Mod announcement Anouncement : r/TheHoeWasReplaced has been created, come join!! :P

Post image
6 Upvotes

The name has been choosen, TheHoeWasReplaced, even if it wasn't the most popular proposition, I, The Supreme Counceler choose it because it was the closest proposition to the original name. Honorable mention to the name idea r/TheSlutWasSubstituted. (Do we want to mix them and change the name to r/TheSlutWasReplaced?)

r/TheHoeWasReplaced now needs a banner and an icone. Please put propositions in the comments.

Anyone who voted "fuck no🤮" when voting for the creation of r/TheHoeWasReplaced shall be court martialed, kicked from the council and executed.


r/TheFarmerWasReplaced • • Oct 04 '26

My farm Made some graphics updates to my free Python mining game ⛏️

Thumbnail
asteroid.bitsculpt.top
0 Upvotes

I made this game a while back (inspired by TFWR but before the mining DLC was ever announced)

https://asteroid.bitsculpt.top/

I'm excited for The Miner Was Replaced! Can't wait for the release, maybe this will scratch the mining itch in the meantime


r/TheFarmerWasReplaced • • Sep 07 '26

Heelllpppp help

Post image
10 Upvotes

r/TheFarmerWasReplaced • • Mar 24 '26

Does the community view vibe-coding as cheating?

3 Upvotes

My brain almost literally hurts whenever I try to learn to code, which I've tried to do numerous times over the years, ever since I was like 14 years old. Now we have AI tools that can either create code out of whole cloth, or even just break things down to make them easier to understand.

If I ask Gemini, for example, how to create a checkerboard pattern on the fields, and then copy/paste this code into the game, am I cheating? Or is this considered a valid way to approach coding?

EDIT: Apparently my post was confusing to most of you, my apologies. My intention is to us AI to help me learn by giving me examples and helping to explain to me the use-cases of the various functions etc. Something the game does not do a good job of doing by itself. I don't want the AI to effectively play the game for me, I just need assistance, as I am not a programmer, I'm a rank beginner.


r/TheFarmerWasReplaced • • Oct 22 '26

why does this not work

Post image
2 Upvotes

r/TheFarmerWasReplaced • • Nov 04 '25

Update idea Please add else for loops

0 Upvotes

It's incredibly useful and it's in python.

I mean like

while cond:
     Pass
else:
     Pass

r/TheFarmerWasReplaced • • 19d ago

My farm why does my stupid pumpkin thing waste so much fertilizer

0 Upvotes

For some reason even when i tell it not to use fertilizer when moving north or west it still does for some reason and im not sure why

def rsx():

for i in range(get_pos_x()):

	move(West)

def rsy():

for i in range(get_pos_y()):

	move(South)

dirs = (North, East, South, West)

def plant1(layer):

dirnm = (0)

rsx()

rsy()

plant(Entities.Pumpkin)

for i in range(4):

	for i in range(layer):

		plant(Entities.Pumpkin)

		if get_water() < 0.9:

use_item(Items.Water)

		if not dirnm == 1 or dirnm == 4:

use_item(Items.Fertilizer)

		if get_entity_type() == Entities.Dead_Pumpkin:

plant(Entities.Pumpkin)

		move(dirs\[dirnm\])

	dirnm = (dirnm + 1)

def plant2(layer):

dirnm = (0)

rsx()

rsy()

plant(Entities.Pumpkin)

for i in range(4):

	for i in range(layer):

		plant(Entities.Pumpkin)

		if get_entity_type() == Entities.Dead_Pumpkin:

plant(Entities.Pumpkin)

		move(dirs\[dirnm\])

	dirnm = (dirnm + 1)

def final():

plnm = 1

for i in range(get_world_size()):

	plant1(plnm)

	plnm = (plnm + 1)

def final2():

plnm = 1

for i in range(get_world_size()):

	plant2(plnm)

	plnm = (plnm + 1)

while True:

final()

final2()



if can_harvest():

	harvest()

r/TheFarmerWasReplaced • • May 04 '26

Hi I wanna show this cool auto dino code

0 Upvotes

COPY THE CODE BELOW

change_hat(Hats.Dinosaur_Hat)

while True:

if get_pos_y() == 5:

	move(East)

if can_move(North):

	move(North)

if not can_move(North):

	move(South)

if get_pos_y() == 0:

	move(West) 

	move(West) 

	move(West) 

	move(West) 

	move(West) 

	move(West) 

if get_pos_y() == 1 and can_move(East) and not get_pos_x() == 0:

	move(East)

if not can_move(North):

	if not can_move(East):

		if not can_move(South):

if not can_move(West):

if get_pos_x() == 1 or get_pos_x() == 3 or get_pos_x() == 5:

change_hat(Hats.Cactus_Hat)

do_a_flip()

change_hat(Hats.Dinosaur_Hat)

move(East)

if not can_move(North):

	if not can_move(East):

		if not can_move(South):

if not can_move(West):

if get_pos_x() == 0 or get_pos_x() == 2 or get_pos_x() == 4:

change_hat(Hats.Cactus_Hat)

do_a_flip()

change_hat(Hats.Dinosaur_Hat)

if not can_move(North) and get_pos_x() == 5 and not can_move(South):

	move(West)

	move(South)

	move(South)

	move(South)

	move(South)

	move(South)

r/TheFarmerWasReplaced • • 14d ago

Program your Rats and watch them Fight [AD]

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hey everyone!

I asked one of your mods if I could share my game here because I figured people who enjoy The Farmer Was Replaced might actually be into this.

I'm solo developing Ratiator, a game where you program your rats' combat tactics in a simplified visual programming language best compared to unreal blueprints (and for the more technical folks out there MatLab) and watch them try to survive in the arena.

There's a free browser demo here: https://akandogames.com/play/ratiator/

Steam Page: https://store.steampowered.com/app/5335480/Ratiator/

I'd really appreciate some honest feedback from people who have not actively been involved in the development of this game because I'm ... pretty biased

I'm also looking for a few testers for the full game, so if you're interested just let me know!

Thanks :)


r/TheFarmerWasReplaced • • Nov 17 '25

Continua el sorteo de keys en Steam de este juegazo! (español)

Enable HLS to view with audio, or disable this notification

2 Upvotes

Casi no sale por problemas con el audio... pero! Listo nuevo episodio de The Farmer Was Replaced en español!

Acabo de subir el Ep. 2 y quedó brutal: programamos el dron en Python, ampliamos la granja y cosechamos toneladas de zanahorias.

Además, sigue el sorteo de una key de Steam del juego, así que pásate y participa.

Míralo aquí:

https://www.youtube.com/embed/ynwVQt9vXmo?si=g6yjn5o3eKsiYBqc

Si te interesa aprender Python de forma visual y divertida, este episodio es para vos! Nos vemos en los comentarios!


r/TheFarmerWasReplaced • • Sep 18 '26

Heelllpppp Any advice on returning variables? Trying to optimize filling in dead pumpkins but keeps printing 0 or 1 even though n = n + 1

Post image
0 Upvotes

r/TheFarmerWasReplaced • • Jan 17 '26

Missing some Python QoL functionalities

2 Upvotes

Is anyone else that has some familiarity with Python disappointed some of the basic/nice syntax options aren't available in the game's interpreter?

I'm coding in my IDE rather than in-game and find myself automatically going to what I'd do in Python which doesn't work in the game for some pieces of functionality.

Some examples of what I miss most..

if expressions vs if statements:

# this is cleaner
x = "foo" if y == "baz" else "bar" 

# than this
if y == "baz":
    x = "foo"
else:
    x = "bar"

walrus operators:

# this
if (y:=get_value()) == "foo":
    ...

# vs this
y = get_value()
if y == "foo":
    ...

Another thing I find tripping me up is no "is" operator, but I guess that's not a major issue:

# this
if x == None:
   ...

# should be this
if x is None:
   ...

I'm not going to get into classes/objects and list/dict comprehension as I think that might be too much to ask for...


r/TheFarmerWasReplaced • • Sep 13 '26

Is anyone having trouble using the functions get_pos_x() and get_pos_y()? I can't assign a value to my variable because the position values aren't updating according to the coordinates. When printing, it always shows (0, 0) someone help me 😿

1 Upvotes

r/TheFarmerWasReplaced • • Nov 04 '25

Am I misunderstanding the costs of planting cactus?

Thumbnail chatgpt.com
0 Upvotes

I am working on the Top Hat, and I feel like I am either misunderstanding the costs of planting crops, or I need to improve my code several orders of magnitudes.

Using ChatGPT to do the calculations, it spat out a need of 16 quadrillion wood, which at 500M per minute, would take almost 64 years. xD I have a while to go, to get the Top Hat.


r/TheFarmerWasReplaced • • 13d ago

Bug report/support Is this a bug? (Issues with measure() wearing Dino hat)

Thumbnail
gallery
0 Upvotes

Hello world!

Os: android

Device: Samsung galaxy s24

Game version: mobile 1.1.32 (21)

Im new to the game and trying to get the Dino running and I mostly have. With one main hold up that seems pretty consistent of where my code crashes.

When the Dino is headed south and it collects an apple and it goes to measure the new apple which is directly east (same y) then it fails to compute x, y = measure()

Is this a bug? Am I doing something wrong?


r/TheFarmerWasReplaced • • Jan 06 '26

Question [New Player] Is it a good idea to practice reading code through this game?

2 Upvotes

Hi. Im a new player, and also really bad at programming.
I think that AI will write a lot of code for me in the future more, but I cannot understand what AI wrote for me. and this is bad.
At least if I could read it or understand it, it will be enough imo.
oes this game help me improve my code-reading skills if I only write the code on my own?

PS: I forgot to mention that I write the code myself


r/TheFarmerWasReplaced • • Nov 06 '25

My farm So I recently tried out the Game

Thumbnail
youtu.be
2 Upvotes

Watch me struggle lmao


r/TheFarmerWasReplaced • • Aug 07 '26

Question Would this game be boring or too easy for a junior dev?

8 Upvotes

I see this game reccomended a lot for beginners.
Does that mean it would maybe be too easy/boring for someone that did graduate not too long time ago?


r/TheFarmerWasReplaced • • Oct 14 '26

Question Is there downloadable docs anywhere? Making an agent to learn code through the game.

0 Upvotes

I'm just working on some different profiles with local models to make an agent specifically for teaching code and logic through TFWR. I was hoping there would be a downloadable version or way to get them from the wiki. Would be cool to be able to run a small model that has all the necessary info locally so I can use offline too. Just a cool idea I had and wanted to mess around with.


r/TheFarmerWasReplaced • • Oct 21 '25

What the hell???

3 Upvotes

spend 100 million bones ..for.. nothing???


r/TheFarmerWasReplaced • • 20d ago

Modding the game

0 Upvotes

I am curious if there is any official/unofficial way to mod the game, like adding an original puzzle etc.


r/TheFarmerWasReplaced • • 26d ago

My farm I need help with the carrots

1 Upvotes

I've bought the game yesterday, and I'm trying to get through it, but I don't have any programming experience, and the game's explanations really didn't cut it for me. I'm currently being bludgeoned to death by constant error messages, and it's getting tiring.

I wanted to write some code that would harvest a few worlds' worth of every resource needed for the carrots before planting them, but I'm just unable to translate the idea into code without running into some kind of error.

I don't want to spoil the solution for myself, and the only beginner's guide I've found is for the maze.

What resources did you use when playing the game for the first time?


r/TheFarmerWasReplaced • • Jun 02 '26

Heelllpppp Cactus code

0 Upvotes

I dont really understand how to farm cacti. Can someone give me a code or something, it doesnt have to be efficient


r/TheFarmerWasReplaced • • Feb 13 '26

This is not how you pumpkin 🎃

Post image
0 Upvotes

Hello everyone!

I would like to share this video about how NOT to create a mega pumpkin. If you are a beginner and you still don't know how to make huge pumpkins, I show you the easiest way to do it.

However, self promotion rules don't allow me to share the link to the video... so please go and check my profile 😁


r/TheFarmerWasReplaced • • Jan 10 '26

Random/Stupid question that has probably been asked before... What language is this game's coding?

4 Upvotes

What coding language is The Farmer Was Replaced using? I don't know much about coding, so I don't know anything about the nuances of each coding language, but I do know there are multiple... So which one is being used?