Export Code

Fork of Consciousness

Nita

Last edited Apr 01, 2025
Created on Apr 01, 2025
Forked from Consciousness

Consciousness Simulation

This project creates an interactive simulation of an emergent consciousness model based on a neural network visualization. It displays neurons that form connections, activate based on stimuli, and generate "thoughts" to simulate a rudimentary form of consciousness.

Features

  • Interactive neural network visualization
  • Dynamic thought generation and self-reflection
  • Adjustable energy and complexity parameters
  • Consciousness level measurement based on network activity

How to Use

  1. Open index.html in a modern web browser
  2. Interact with the simulation:
    • Move your mouse over the canvas to subtly stimulate neurons
    • Click on the canvas to activate neurons near the cursor
    • Use the "Stimulate" button to randomly activate neurons
    • Use the "Ask a Question" button to prompt philosophical reflections
    • Adjust the sliders to control energy level and network complexity

Architecture

The code is organized into several modules:

  • neuralNetwork.js: Manages neurons and their connections
  • renderer.js: Handles the canvas visualization
  • thoughtSystem.js: Manages thought generation and consciousness measurement
  • uiController.js: Handles user interface interactions
  • simulation.js: Coordinates all components
  • main.js: Entry point that initializes the simulation
MIT Licensed