lifesim banner

lifesim

1 devlog
1h 31m 34s

A bitlife like lifesim in the cli written completely in rust

This project uses AI

Welp its everything cuz i do not know anything about rust

Demo Repository

Loading README...

gnahiak2

๐Ÿงฌ LifeSim CLI โ€” Devlog

๐Ÿ“… Project Overview

LifeSim CLI is a terminal-based life simulation game written in Rust.
The player starts at age 0 and makes yearly decisions that affect their stats, shaping their life until death or old age.

The project was built as a lightweight BitLife-inspired simulator using only a command-line interface.


๐Ÿง  Core Idea

The goal was to simulate a simplified human life using:

  • Age progression system
  • Player stats (Health, Happiness, Money)
  • Choice-based decision system
  • Random life events
  • Win/lose conditions

โš™๏ธ Features Implemented

๐Ÿ‘ถ Life System

  • Player starts at age 0
  • Age increases every game loop iteration
  • Life stages evolve over time

๐Ÿ“Š Stats System

  • Health
  • Happiness
  • Money

Each decision affects stats differently.


๐ŸŽฎ Player Choices

  • Study
  • Work
  • Party
  • Gym
  • Do nothing

Each option changes stats and simulates real-life tradeoffs.


๐ŸŽฒ Random Events System

Each year, a random event may occur:

  • ๐Ÿ’ธ Finding money
  • ๐Ÿค’ Getting sick
  • (Planned) more life events like accidents or promotions

๐Ÿ’€ Game Over Conditions

The game ends if:

  • Health reaches 0
  • Happiness reaches 0
  • Age reaches 100

โช Age Regression (Planned / Experimental Feature)

A rare event where the playerโ€™s age can decrease due to a โ€œtimeline glitch,โ€ adding unpredictability to gameplay.


๐Ÿ›  Technical Stack

  • Rust ๐Ÿฆ€
  • std::io for input handling
  • rand crate for randomness

๐Ÿงฑ Architecture

The game is structured as a single-loop CLI application:

  1. Display stats
  2. Prompt user input
  3. Apply action effects
  4. Trigger random events
  5. Update age
  6. Check win/lose conditions
  7. Repeat

๐Ÿงช What I Learned

  • Handling user input in Rust
  • Using loops for game logic
  • Managing mutable state safely
  • Working with randomness (rand crate)
  • Building a full interactive program using only CLI

๐Ÿš€ Future Improvements

  • ๐Ÿง‘โ€๐ŸŽ“ Education system (school โ†’ university)
  • ๐Ÿ’ผ Career progression system
  • ๐Ÿ  Asset system (buying items, housing)
  • โค๏ธ Relationships system
  • ๐Ÿ”„ Fully working age regression mechanic
  • ๐Ÿ’พ Save/load game state
  • ๐ŸŽจ Improved CLI UI (boxed layout, colors)

๐Ÿ“ธ Demo

(Insert screenshot or GIF of gameplay here)


๐Ÿ“œ Status

Project is currently in early development but fully playable with core mechanics implemented.car

Attachment
0