Skip to content

MaadhavBhatt/guess-the-line-v2

Repository files navigation

Guess The Line V2

This project builds on the "Guess The Line" concept on the r/desmos subreddit, where users try to guess a hidden graph based on its equation and webgoatguy's YouTube video.

This project will be submitted to Hack Club's Midnight hackathon. If you're a teen interested in coding, check out Hack Club!

How to Suggest a New Graph?

  1. Edit the /src/data/graphs.ts file here.
  2. Add your desired graph equation in the format f(x)=... on a new line.
  3. Make sure to follow the existing formatting and conventions in the file. I'll write a formatting guide soon.
  4. Attach a screenshot of the graph plotted on Desmos for reference.
  5. Submit a pull request with your changes.

Graph Function Format

  • Use f(x)=... format for defining functions.
  • Use '\' for escaping cos, sin, tan, etc. (e.g., \\cos(x)).
  • Use '\left|' and '\right|' or \\operatorname{abs}() for absolute values (e.g., \\left|x\\right|, \\operatorname{abs}(x)). The latter notation is highly recommended.
  • Be generous in your use of spaces for clarity.
  • Ensure the function is compatible with Desmos syntax.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

About

Guess the function based on its graph

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors