CodingTrain / CodingTrain/Suggestion-Box

math expression parser with dice notation!

Aperta
#1,719 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
570
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I think a fun coding challenge would be to create a math expression parser that could support dice notation.

The simplest implementation would probably just support:
- add/subtract
- multiply/divide
- basic dice notation (dX/AdX)

however, a more advanced implementation might also support:
- parenthesis
- keep/drop dice notation (AdX[k/d]Y...)

Some dice notation examples:
- d20 <- roll 1 twenty sided die.
- 3d4 <- roll 3 four sided dice, and add them together.
- 4d6k3 <- roll 4 six sided dice, keep the three highest rolls and add them together. (used in d&d5e to generate base stats)
- 5d8d2 <- roll 5 eight sided dice, drop the highest two rolls, and add the rest together.
- 6d10k4d2 <- roll 6 ten sided dice, drop the two lowest rolls, drop the two highest rolls, and add the rest together.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

L’issue non indica file del progetto, test o punti di ingresso. Determina innanzitutto se il repository dispone di una posizione adatta per un parser e concorda quali funzionalità della notazione rientrano nell’ambito; il lavoro sarebbe completo con un parser implementato e test che coprano gli esempi selezionati di dadi e aritmetica.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.