Share your repls and programming experiences

← Back to all posts
ATOM - a game based on the periodic table
h
SixBeeps (1043)

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!

Commentshotnewtop
ChezCoder (128)

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 (1043)

@Staff Haha, good catch lol. Fixed it.

sugarfi (152)

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

SixBeeps (1043)

@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 (1043)

@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 :)

LiamDonohue (68)

hi i was bored so i started this lol

LiamDonohue (68)

hi wanna work on the os thing?

LiamDonohue (68)

hi wanna work on DarkOS?

MatthewDoan1 (255)

Wow, I'm addicted.

Especially since I have an awesome periodic table poster above my desk. Pretty cool game maestro!

2009k (12)

good game. little glitchy on chromebook.

bossotron13 (64)

This looks super cool and i want to recreate this in python with your permission! Ive been looking for a project for too long and this looks really cool.