Share your repls and programming experiences

← Back to all posts
ATOM - a game based on the periodic table

Hi all!

I've been working on a game called ATOM. The goal of the game is to discover all of the elements of the periodic table in as few moves as possible starting with just hydrogen. You can discover elements through finding them in various places, or you can choose to transmutate a pre-existing atom.

It is highly recommended to play this game in a separate tab, as it will prevent stuff like text wrapping where wrapping would otherwise be unwanted.

The game runs on exactly 500 lines of code (as of the time I'm writing this) which I'm pretty proud of :)

Any feedback would be appreciated!

ChezCoder (1582)

all i can say is coolest game ever.
although takes a very long time

Staff (6)

An atom contains as many atoms as its atomic number.
Did you mean protons :)
Have a nice day!

SixBeeps (3725)

@Staff Haha, good catch lol. Fixed it.

sugarfi (602)

How come you get oxygen for taking breaths but not carbon? Great game by the way

SixBeeps (3725)

@sugarfi From Britannica:

The molecules of two different elements, nitrogen and oxygen, make up about 99 percent of the air. The rest includes small amounts of argon and carbon dioxide.

There's not enough for there to be breathed in.

launcherman08 (22)

Question: If this is a game based on science, why do you lose protons if the Law of Conservation of Matter says otherwise? I am in 6th-grade science, so I may be wrong.

SixBeeps (3725)

@launcherman08 The Law of Conservation of Matter states that mass cannot be created nor destroyed, but simply transferred. That's what's happening here. You're taking the protons of one atom and shooting them into the nucleus of another. Now, as for extra protons that get lost in the process of ATOM's transmutation, well, let's just say they go into space, never to be seen again :)

SixBeeps (3725)

@BobTheTomatoPie Thanks! It's actually surprising to see that this is already 3 months old. Seems like only a few weeks ago I made this.

BobTheTomatoPie (1600)

Lol, it definitely deserved more attention. I mean you've added all the elements, it's crazy @SixBeeps

SixBeeps (3725)

@BobTheTomatoPie Yeah, that took a few hours...

LiamDonohue (295)

hi i was bored so i started this lol

LiamDonohue (295)

hi wanna work on the os thing?

LiamDonohue (295)

hi wanna work on DarkOS?

MatthewDoan1 (331)