Skip to content

Assignment-1 submission for dante#9

Open
AdityaTaggar05 wants to merge 20 commits intoGit-Lecture-2026:dantefrom
AdityaTaggar05:dante
Open

Assignment-1 submission for dante#9
AdityaTaggar05 wants to merge 20 commits intoGit-Lecture-2026:dantefrom
AdityaTaggar05:dante

Conversation

@AdityaTaggar05
Copy link

No description provided.

@TanmayArya-1p
Copy link

TanmayArya-1p commented Mar 14, 2026

Major stuff you need to do in decreasing order of priority:

  • https://github.com/max-niederman/ttyper - try to make a TUI like this that highlights the part you got right in green and the part you got wrong red.
  • Use a predefined set of words(use this ) instead of sentences. The sentences don't need to make sense. Let the user configure how many words they want in a test before starting it.(both through cli args and a tui menu)
  • Do the brownie points stuff: store typing test results in a csv somewhere(probably in ~/.local/share/) and add a menu in the TUI to view global stats overall all tests, tests in the last month, etc
  • Instead of hard coding sentences, fetch words from here and cache it somewhere(again probably in ~/.local/share) on demand. The user should be able to select which language they want from a menu(you can use a subset of the languages in the linked repo) and you can fetch it and cache it when they want it.
  • Make an rc file that would store default configurations for word count, language, difficulty etc. When you launch the script without any arguments it should use these default configs.

This might be a lot to do but try to do the TUI part by end of today(15th) atleast.

@TanmayArya-1p
Copy link

Nits:

  • Prefer to use present tense in git commit messages - ref

@TanmayArya-1p
Copy link

TanmayArya-1p commented Mar 14, 2026

Also, change the target branch to Git-Lecture-2026:dante

@AdityaTaggar05 AdityaTaggar05 changed the base branch from main to dante March 15, 2026 09:01
@TanmayArya-1p
Copy link

  • If i enter a language that is not valid, it tries to fetch it and silently breaks :
image You should tell the user if the language is not valid and also display a link or something else they can use to see what languages are available.
  • Word count can be < 0.
  • Difficulty is not validated to either be e/m/h.

I need you to think of every way someone might try to break your script and add validation for them.

Add text highlighting with different colours as the user types in text to show which character they got right and wrong.
Also would be cool if you can center align the entire thing; afaik printf has some alignment features that you can use for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants