Kaffaljidhmah2 / LightCircuit

A simple logic circuit simulator implemented in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Light Simulator


Intro

No wires: light transmitted through air!

Only One basic logic circuit building blocks: NOR Gate.

Use NOR Gate to build a CPU!

Other blocks serve as light reflectors and splitters.

example.png


Requirements

Tkinter

Usage

  1. Clone this repo.
  2. run python3 GUI.py.
  3. Press o on main window, and then enter 4bitReg.txt in your terminal.
  4. Enjoy hacking!

Shortcuts

  • Use 1~9 to select blocks.
  • Press s to save current design pattern into a .dgn file.
  • Press o to load .dgn files.

Hack

in core.py: change the following to resize the canvas.

NX=400
NY=400

About

A simple logic circuit simulator implemented in Python


Languages

Language:Python 100.0%