Share your repls and programming experiences

← Back to all posts
Cactus Simulator
h
CodingCactus (3090)

I hit 500 cycles recently. YAY, thanks!! Although I probably have about 50 cycles in ask questions where they haven’t selected my answer as the answer after admitting that it was the answer to their question :(

So here is a 500 cycle special!

How to play:

All instructions are explained in the game, but I’ll give you an overview anyway:

  • You are given a choice of what cactus you would like to be. All are found in The Cactapedia
  • You are then given an overview of your chosen cactus
  • Now the actual simulator starts. You (as you are told) make your decisions monthly. You can either: increase root length, stem height or number of spines.
  • You have to balance your decisions so that none of your stats fall to 0 (you die if they do).
  • You need to survive for 5 years (60 months)

Thanks to @xolyon for allowing me to use a function that they made which that the text can be printed letter by letter.
Also, for their colour codes tutorial which allows for colours with no imports, YAY!! :)


Have Fun, and if you do: don’t forget to upvote! :)

Commentshotnewtop
CodingCactus (3090)

Thanks for 500 cycles!!!!

:)

Codemonkey51 (889)

(งಠωಠ)ง

Cool also I'm approaching your level @CodingCactus

Codemonkey51 (889)

Lol also @LizFoster doesn't know UwU lol direct quote:
@Codemonkey51 What is an UwU? (- - )? LizFoster 2020
Link here
@CodingCactus

Codemonkey51 (889)

OwO but with U's it's a face:

UwU

Do u not see it?
@CodingCactus

CodingCactus (3090)

@Codemonkey51 can't be bothered, just tell me pls??

Codemonkey51 (889)

UGHHHHHHHHHHHHHH @CodingCactus if you don't want to look it up here is the urban dictionary definition: link

CodingCactus (3090)

@Codemonkey51 by the way all of my emoticons are just from gboard, I don't have any of the symbols

Codemonkey51 (889)

Lol I use websites and the Japanese iOS keyboard which comes with the faces (^O^)@CodingCactus

Codemonkey51 (889)

Other link because I saw ur deleted comment @CodingCactus

CodingCactus (3090)

@Codemonkey51 i saw it anyway before it got blocked

CodingCactus (3090)

@Codemonkey51 something like cuteness overload

CodingCactus (3090)

@Codemonkey51 thanks for enlightening me OwO

LizFoster (607)

@Codemonkey51 I just didn't know!wwwwwww

CodingCactus (3090)

@LizFoster neither did I

Now we have been enlightened in the way of the UwU and OwO

CodingCactus (3090)

@LizFoster the standard :) and :( do the job for me

ChezCoder (1552)

@Codemonkey51 this almost became a r/wooosh XDDD

ChezCoder (1552)

@Codemonkey51 just realized that I spelt woooosh with 3 O's instead of 4🤦🤦🤦

Edit: Realised there are 5 O's kill me 🤦🤦🤦🤦🤦🤦🤦🤦

ChezCoder (1552)

@CodingCactus lol, here is what a r/wooooosh is > check this, it will give you a laugh :D

CodingCactus (3090)

@ChezCoder can't get on reddit, not allowed

:(

ChezCoder (1552)

@CodingCactus oof, lemme just explain it then :D, so basically, r/wooooosh is when some person makes a joke and another person just doesnt get the joke. For example, there was this meme that spelt the word "back" as "bacc" and some guy in the comments was like "Bruh you spelt "back" wrong, stupid."

ChezCoder (1552)

@CodingCactus or you can just search r/wooooosh on google and go to images :D

ChezCoder (1552)

@CodingCactus also can u plz add me to repl.it/@CodingCactus/CodingCactus so I can add more styles? thx :D

AmazingMech2418 (941)

@LizFoster LOL! The funny thing is that I knew what UwU was, but not TwT... Especially with how similar they are...

ChezCoder (1552)

Recommendation: Something to skip the intro, it takes so long XD

CodingCactus (3090)

@ChezCoder if you can do that, i will add it, i'll speed it up currently for you tho

ChezCoder (1552)

@CodingCactus

Change the scrollTxt and other customizable parts to your liking this was just an example :D

def clear():
    print("\033[2J\033[H",end="") # also, i suggest that for the clear console statement, you change it to this

# you can but an if loop around the intro to run if this is true after the code below
do_intro = True

while True:
    clear()
    scrollTxt("Skip Intro?(Yes/No): ")
    decision = input()
    if decision.lower == "yes":
        do_intro = False
        break
    elif decision.lower == "no":
        break
        do_intro = True
CodingCactus (3090)

@ChezCoder done, thanks for suggestion

ChezCoder (1552)

@CodingCactus Lol one more suggestion, for the clear console, do print("\033[2J\033[H",end="") instead of print("\033[2J\033[H"). The end="" will prevent the leading line-break at the beginning of the console when you clear chat :D

studentAlfredAl (435)

Love this game. Harder than it looks lol

CodingCactus (3090)

@studentAlfredAl thanks, yeah it is a bit isn't it

studentAlfredAl (435)

@CodingCactus I think I broke it when I spammed the enter key lol

studentAlfredAl (435)

@CodingCactus every single time I last 1 year and 2 months.

NoelB33 (314)

Same, every single time I die at 1 year and 2 months. It’s really hard. @studentAlfredAl

NoelB33 (314)

Grow your roots out as much as you can, only way I was able to pass it. @Codemonkey51

MrEconomical (2231)

great work! cactuses are tasty

CodingCactus (3090)

@MrEconomical tasty!!!, WHAT????
I would never eat a cactus, it's cannibalism!

xolyon (339)

@CodingCactus LMAO funny thing is I just found a school project I did all about cacti

CodingCactus (3090)

@xolyon cool, fancy sharing it lol :)

DannyIsCoding (669)

Yay! I did it. My cactus survived for five years and lockdown still isn't over! XD

DannyIsCoding (669)

@CodingCactus Thanks! I have learned more about plant from 15 mins on Cactapedia and by playing this game than in a whole year of biology at school.

Also, you just did the 500 cycles special and you're almost at 600. lol
I also made a pirate name Generator if you're interested:
https://repl.it/talk/share/Pirate-Names/33992

CodingCactus (3090)

@DannyIsCoding nice, Admiral cactusnate The Feared

DannyIsCoding (669)

@CodingCactus I wrote Coronavirus and the name was Sir Coronavirus The Feared XD

DannyIsCoding (669)

@CodingCactus Also Congrats on the fact that 2 of your repls are in the top trending list 👏

Codemonkey51 (889)

1 year and 2 mounths YAY

CodingCactus (3090)

@Codemonkey51 try harder (prioritise roots, then, spines, then sunlight)

Codemonkey51 (889)

Ok that's what I did: 1,3,2 @CodingCactus

Codemonkey51 (889)

lolololololololololololololol

@AARIZBOY

RossJames (302)

You lasted 3 Years and 2 Months.

You were a Fairy Castle Cactus and were:
100cm tall
With:
115cm long roots
and
80 spines

DannyIsCoding (669)

The Coding god has done it again! :)

DannyIsCoding (669)

Yes! It's Finnaly here!

Congrats @CodingCactus for reaching 500 Cycles!

ayush2007 (42)

what a performance one of the best codding I have seen (for me)on repl I am sure this will be the top codding for me

DannyIsCoding (669)

Ngl, your game is kinda addicting. ;)

codingduck (8)

that is not how you spell protection

[deleted]

I love it!

Glemaire (0)

dissiz verry verry goode my friand

ThisUserTaken (233)

hey @CodingCactus , is it ok if I post a game kinda similar to this or should I change it a little. Here's the game: https://repl.it/@ThisUserTaken/Noob-Simulator#main.py

HewoPrsen (4)

Uhm... how come you can't die from lack of sunlight?

AustinZhang1 (60)

When you realize sunlight can never go down to 0...
O-O

AustinZhang1 (60)

wow just realized sunlight never becomes 0 xD

StevenRafft (0)

Very nice, i like the game. still getting to understand it a bit more.

JonahElias (149)

I am kind of new to python, how do you create the text colors?

CodingCactus (3090)

@JonahElias with ansi escape codes, if you look at the code, you should be able to work it out, if not, here is a great tutorial: https://repl.it/talk/learn/Styling-text-in-Python/33384

JosephSanthosh (1194)

Nice -- You actually made something nice out of Python. It's impossible, python is vague

CodingCactus (3090)

@JosephSanthosh you can easily make great thing with python see all my posts

JosephSanthosh (1194)

WHAT YOU GOT 1500 CYCLES IN FOUR MONTHS!!!

CodingCactus (3090)

@JosephSanthosh I got 1000 cycles in a month so um yeah

JosephSanthosh (1194)

@CodingCactus HOW??? Like I don't want to get cycles but that is clearly insane

CodingCactus (3090)

@JosephSanthosh well I guess you should try posting high quality things

JosephSanthosh (1194)

@CodingCactus Yea! How do you make up ur ideas?

alextotoro1 (12)

I am a succulent addict so...
Me: sees this
Me: :))))) XD
everyone in the same room: ;0 exactly what were you doing?

No seriously, I have the link to this pinned on my taskbar as "GO HERE EVERYDAY TO PLAY"

P.S. funny thing is, I have a fairy castle.

Clarathe (1)

I love this! :O also, fun fact: the Sanoran Desert is the only place where a saguaro can grow, considering they're often portrayed in desert scenes in cartoons and such, it's common to mistake them for growing elsewhere

sorry if the wording was a little weird, It's 4am and im tired

JacksonPhilips (66)

Congratulations on reaching 1000 cycles!!! :D

kbadrinath_tcsp (215)

Hi @Coding Cactus. I do not know how to message you privately, but I was looking at your little website about yourself, and there is a question I wanted to ask you on how you did one part of it. I will wait for a response here, and then hopefully there will be some other place for you to answer it.

CodingCactus (3090)

@kbadrinath_tcsp hi, you can message wherever you want, which bit do you want to know about?

kbadrinath_tcsp (215)

I wanted to know about the part where you hover over My Projects and it does that sweep from left to right thing. @CodingCactus

CodingCactus (3090)

@kbadrinath_tcsp ye, you're gonna want to ask @ChezCoder about that lol, he's working on it for me (he should see this comment and reply for you) i'll try to find it in the code :)

ChezCoder (1552)

@kbadrinath_tcsp ok, I read the post.
So basically, I have 2 <div> and 1 <a>. The first div is the background for the <a> and the second <div> sweeps over the first <div> when either <div>s are hovered over. I added some js to patch a glitch with the hovering.

kbadrinath_tcsp (215)

Ok, thanks! One last question I have is how you worked out the css code. Would it be possible for you to direct me to some website that could help me understand that bit? Or if you can explain it that would be great too! @ChezCoder

ChezCoder (1552)

@kbadrinath_tcsp I used css animations and advanced positioning. I am free rn and will be willing to help you in a collab session. What do you think?

baqpaq (0)

It's a really fun game, good job :D