Skip to content

lokkdevv/curve_crafter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curve Crafter

    _________                              _________                _____  __                 
    \_   ___ \ __ ____________  __ ____    \_   ___ \____________ _/ ____\/  |_  ___________  
    /    \  \/|  |  \_  __ \  \/ // __ \   /    \  \/\_  __ \__  \\   __\\   __\/ __ \_  __ \ 
    \     \___|  |  /|  | \/\   /\  ___/   \     \____|  | \// __ \|  |   |  | \  ___/|  | \/ 
     \______  /____/ |__|    \_/  \___  >   \______  /|__|  (____  /__|   |__|  \___  >__|    
            \/                        \/           \/            \/                 \/             

Curve Crafter is a terminal based C project combining:

  • A math function grapher
  • A mini CLI game engine

Each part can be used independently, making it easy to repurpose for other projects or experiments.


Features

  • Graphing calculator capabilities via command line input
  • Flicker free, double-buffered console rendering
  • Mini CLI game engine for simple terminal games

Requirements

  • Windows OS / Unix OS
  • Windows SDK // If using windows OS
  • C compiler (gcc, cl, etc)

Compiling

Graphing Calculator

  • Windows:
make win 
  • linux:
make linux

CLI pong game

  • Windows:
make win_pong
  • linux:
make linux_pong

Running

After compiling, run from the terminal and pass a mathematical expression as an argument:

./bin/CurveCrafter "x*x/100"

To run the pong game you can either open it as any regular exe or open it via terminal:

./bin/Pong

Future Plans

  • Multiple functions plotted simultaneously
  • More optimization

Contributions are welcome! Open an issue or submit a pull request if you want to help.

License

  • MIT License

About

Plots math functions in the terminal in real time and is written from scratch in C.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors