# Carnot Game - Casual Physics

**URL:** <https://forum.babylonjs.com/t/carnot-game-casual-physics/55796>\
**Category:** Demos and projects\
**Tags:** game, 3d, havok, simulation, casual\
**Created:** [January 6, 2025, 11:04pm UTC](https://forum.babylonjs.com/t/carnot-game-casual-physics/55796 "2025-01-06T23:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rafaelj/32/36167_2.png) [@rafaelj](https://forum.babylonjs.com/u/rafaelj)\
**Post date:** [January 6, 2025, 11:04pm UTC](https://forum.babylonjs.com/t/carnot-game-casual-physics/55796/1 "2025-01-06T23:04:53Z")

</div>

Hi! I’m here to share my new interactive physics game with you all!

**Carnot Game**  
[Link to play! (English Version)](https://fisicagames.com.br/index.php/2025/01/06/carnot-game/)

**Description**  
_Carnot Game_ is an interactive game inspired by the **Carnot Cycle** , where players alternate between three thermal sources— **hot** , **insulator** , and **cold** —to maximize the work performed on the piston of a cylinder. The objective is to maintain the piston operating in an ideal Carnot cycle by switching sources at the correct times to avoid the cylinder exploding or freezing. The closer the player is to replicating the Carnot cycle, the higher their score and progress.

* * *

### **Objective**

Players must click a button to switch between the thermal sources of the system at the right moments, ensuring smooth operation of the piston. Mistimed transitions can lead to the piston jamming or the cylinder exploding. The Carnot cycle includes the following four thermodynamic processes:

- Isothermal Expansion
- Adiabatic Expansion
- Isothermal Compression
- Adiabatic Compression

* * *

### **Features**

- **Thermal Source Switching** : Switch seamlessly between hot, cold, and insulator sources with a single button.
- **Carnot Cycle-based Scoring** : Achieve higher scores by accurately timing transitions to maximize work output.
- **Temperature Visual Effects** : Particle systems dynamically change color (from red to blue) and speed, representing temperature and molecular movement inside the cylinder.
- **Pressure Visual Effects** : The piston vibrates as internal pressure builds up, based on actual particle collisions.
- **Levels and Scoring System** : Players are ranked based on their performance, with titles ranging from _Beginner_ to _Curious Student_, and culminating in _Nicolas Léonard Sadi Carnot_ for top-tier players.
- **Switch Limitation** : Players have a maximum of **9 thermal source switches** , with the final switch causing an explosion if the source is set to hot.

* * *

Feel free to play and explore the mechanics of thermodynamics in a fun and engaging way! Feedback and suggestions are welcome.

 ![1736179748201](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/d/2d6cc1d6d1f08af6c713a18955e4572efbd979b2.png)  
 ![1736179798065](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/d/2d89a4e48dd2dffcc7fe681e4c6dd23aec650ac2.png)  
 ![1736179831530](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/0/5060c1d8996233a11742f2beb066b68e02ab241e.png)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 7, 2025, 12:12am UTC](https://forum.babylonjs.com/t/carnot-game-casual-physics/55796/2 "2025-01-07T00:12:31Z")

</div>

Nice!!!
