# Game Idea: Chemistry Dynamics in Real Life

**URL:** <https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727>\
**Category:** Offtopic\
**Created:** [August 28, 2024, 5:45pm UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727 "2024-08-28T17:45:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [August 28, 2024, 5:45pm UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727/1 "2024-08-28T17:45:16Z")

</div>

TL; DR: There is a void in the gaming industry of a high-quality chemistry game in the context of the real world that wholesomely traps people in being educated. _Someone_ could fill that gap… 👀

* * *

Wildfrost. Slay the Spire. Dominion. And so many more turn-based deck-builder games that I love, are addictive, and many love mastering to such a deep degree, and is fun for all ages.

Personally, they all scratch the tactical resource battling kind of itch I have, and I always turn back to them periodically and have a good time.

But all of them miss the itch I have of: a fundamental reality model. Hear me out.

I loved maths since school for how fundamental it felt to everything. My brain got a kick out of applied mathematics with a focus on how the underlying mathematics gave insights and solved problems in the applied domains. Heck I’m an applied mathematics graduate, working in an applied mathematics field for many years now and I love it.

While I didn’t take chemistry in school, it’s been an academic hobby interest of mine throughout my life along with quantum mechanics and meteorology. Understanding that full stack of how the world works down to its fundamentals is such a thrill to me - Fluids, Oceans, and Climate being my all-time favourite course I took at University.

 ![](https://global.discourse-cdn.com/julialang/original/3X/0/d/0d2e46cdd86933d35b9532438d0806774a02a52f.png)  
And [I’m not alone with this itch](https://www.reddit.com/r/gamingsuggestions/comments/156f1ck/looking_for_a_game_based_on_real_chemistry/?rdt=48109&onetap_auto=true&one_tap=true).

But I digress.

The idea for a game demonstrating chemistry in real life has been started by some, or finished by others but are of small, limited scale or features. I’m thinking of the quality and size of the aforementioned games, with full fledged development.

And I’m not talking about the addictive, semi-realistic garbage that Doodle God models. (Not called garbage out of disrespect, but out of a comical tease at how arbitrary many of the combinations and their results are, I’ve spent much time with that game and it’s fun making combinations.)

An example of a level in the single-player campaign is: you are a washing machine. Your user has given you clothes of particular types of dirt - maybe that family went to the zoo, maybe one of them works in construction, that can be randomised, and influences what dirt particles needs to be cleansed. For each turn, envision you get to control what chemicals get added. You have limited resources. Maybe you only have access to one side of the drum of the washing machine (almost just lazily called it “the spinny part of the washing machine”) and in between your chemical-applying turns, the drum rotates `\theta` degrees. Think turn-based dynamics of the aforementioned games.

I’m thinking a roguelite where a player builds up their periodic table—isotopes and all—in a replayable campaign of levels with appropriately randomised challenges and randomised atoms and molecules to master.

I’m thinking player-vs-player where you’re trying to combust each other’s molecules.

I’m thinking beautifully and cutely designed playing cards of atoms, molecules, dynamics, etc. that can become physically printable as trading cards (it would satisfy me so much to have a full periodic table collection of such).

I’m thinking viable uses in classrooms via a sandbox mode.

I’m thinking streamlining the education of the next generation by tricking people into playing a game that subtly educates them on a topic that can end up giving them a smile as they fill in a school test answer with something they learned from the accurate physics and chemistry demonstrated in this game.

Why am I posting this in the Julia language discourse? Well given that Julia is the best\* language for scientific development, it would be interesting to utilise Julia’s strengths for this. I’m aware of [JuliaChem](https://github.com/JuliaChem), things like Catalyst.jl, Molly.jl 😏 and even PeriodicTable.jl (very cute periodic table in text by the latter:)

```julia
julia> using PeriodicTable

julia> elements
Elements(…119 elements…):
H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
Uue                                                   
      La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu    
      Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr

```

I’m also aware of some attempts in using Julia for game development, like GameZero.jl which hasn’t been touched for a while. Also, [Is Julia good for game development](https://discourse.julialang.org/t/is-julia-good-for-game-development/73804)? [No](https://discourse.julialang.org/t/is-julia-good-for-game-development/73804/2). [Should we make a push into gaming industry](https://discourse.julialang.org/t/should-we-make-a-push-into-gaming-industry/98792)? [No](https://discourse.julialang.org/t/should-we-make-a-push-into-gaming-industry/98792/2). I like this example of the details given here:

> [@Is Julia good for game development?](https://discourse.julialang.org/t/is-julia-good-for-game-development/73804/8):
>
> I’ve been in the game industry for 35 years, and have been playing with Julia.  
> I think it’s a pretty solid language for using as a game scripting language -ie a replacement for things like LUA, C#, in-house languages, and I have integrated it into my distributed simulation engine. The ability to run at compiled code speed and easy integration with the mainstream game dev language (c++) are strong positives.
> 
> The risks I would say are GC, and big issues about load-time compilation. I think the first is maybe not such a problem, and because of the ability to do code introspection, you could define “allowed” and “not allowed” constructs in your game logic scripting. The second seems a bit problematic though, julia’s startup times for even relatively simple code packages could easily become the bottleneck in game/level startup time.

That said, a more recent attempt is JulGame.jl which looks promising.

And why am I posting this instead of getting started on it? I would love to make this game. But:

- I don’t know chemistry. I do have plans to learn it, but I’m definitely not the best person to make this game. You all have permission to make fun of me for my example above for how silly an idea it is. Give me a more realistic example… oh that’s a good one, you know what? AHA, I’ve tricked you into giving a better example of a level for this game.

- I have too much stuff going on in life to take this on, and I am not talented enough to see this through to its end. Maybe someone else looking for some new life/career goal can take this on - like I TL;DR’d, it’s a void in the game industry. And it requires an intersection of professional chemistry and professional game development.

- I briefly mentioned this idea [here](https://discourse.julialang.org/t/advocating-julia-for-game-development-julialang/118060/2) and I couldn’t sleep tonight thinking that @Kyjor is waiting for me to show them something. (I joke of course (or am I.))

- I interact most with the Julia community - y’all have been the nicest to me. I may copy-paste-alter this for some other community I can go and annoy or entertain depending on your sense of humour.

Anyone can go ahead and make this game, you don’t even have to credit me for this spectacular idea. And of course, it doesn’t need to use Julia at all - ya’ll do what you want, just call it “Catalyst” and don’t microtransaction it. I just want this itch scratched, and making this post lightly taps this itch covered by my shirt sleeve.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [August 28, 2024, 5:58pm UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727/2 "2024-08-28T17:58:41Z")

</div>

It’s a slightly different tack, but this reminds me of an old 90s game by Ambrosia Software, Chiral:

> **[Chiral (1994) - MobyGames](https://www.mobygames.com/game/87437/chiral/)**
>
> Chiral is a puzzle game where the player has to create stable molecules by connecting atoms. Atoms drop down into a vial one at a time and by clicking on the playfield the atom on the bottom will be placed where the mouse is. Each atom has a dot...

It was only a cartoon of reality, but it was very cute and fun.

---

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [August 28, 2024, 6:04pm UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727/3 "2024-08-28T18:04:10Z")

</div>

“Andrew the OK” was such a good player.

![](https://global.discourse-cdn.com/julialang/original/3X/5/3/5306375bdcaed44313e54ca7b577aeb94860dc26.png)  
It does look like quite the cute game.

![](https://global.discourse-cdn.com/julialang/original/3X/2/b/2bec4bf522099da575e5c16cde96580b259a7c72.png)  
 ![](https://global.discourse-cdn.com/julialang/original/3X/3/6/3637b357296e24ed6bd0bc78cccb1f6c10d9abc4.png)

---

<div class="post-metadata">

**Author:** ![Tarny\_GG\_Channie](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Post date:** [August 28, 2024, 11:26pm UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727/4 "2024-08-28T23:26:33Z")

</div>

There have been games like Molek-Syntez that tries to do chemistry.

I’m not sure what unique thing can Julia offer. Can Julia actually offer realistic reaction simulation? I don’t think so. The last time I checked, you don’t simply create a drug manufacturing process by playing some games.

---

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [August 29, 2024, 12:13am UTC](https://discourse.julialang.org/t/game-idea-chemistry-dynamics-in-real-life/118727/5 "2024-08-29T00:13:12Z")

</div>

Molek-Syntez looks interesting, I might give it a go.

I laughed at kiki’s review of it:

> summary:
> 
> - use a rudimentary programming language to make drugs
> - completely forget about molecular chirality and wonder why your solution is not working
> - get frustrated
> - open solitaire
> - realize you are bound to cheat in solitaire (nothing will ever feel like shenzhen io solitaire)
> - play a few rounds with a profound sadness in your heart
> - try to make drugs again

Sounds like someone else has a similar itch as I do 😅

> [@Tarny\_GG\_Channie](#):
>
> I’m not sure what unique thing can Julia offer

Yeah me neither. Just thought it might be interesting to speculate if Julia had some interesting approach that’s easier. E.g. an endless mode where you battle a NN that learns from your behaviour, implemented using the SciML framework.
