I believe this commit closes the core feature loop.
Now, it's all about QoL improvements, bugfixes
and the dragon for which this project is meant to be a PoC:
DELEGATION
So far it's working quite well,
and it is rather pleasant to code.
There are no safeguards whatsoever for now.
They will come along with their tests :3
As detailed in previous commit with the unit-test (which now pass),
the regex is as follows :
(?<candidate>[a-zA-Z]{1})(?<grade>[0-9]{1})
We have room to support more than 25 candidates or 10 grades in the future.
Right now, this is enough, let's move on !
This is the type of thing that will benefit a lot from unit tests,
bacause we'll be able to quickly experiment feeding it malicious data,
since that data will come from userland and may not be trusted.
We're going to start with the following syntax :
<candidate><grade>
such as
A2
means give grade #2 (passable) to candidate A
Grades (when there are 6):
0. TO_REJECT .0
1. POOR .1
2. PASSABLE .2
3. GOOD .3
4. VERY_GOOD .4
5. EXCELLENT .5
This will require showing ABC letters in the results gui… Hmmm.
The data is a dummy, waiting to be connected to a provider like Twitch.
We also need to sort the profiles, and animate the sort ;)
The GUI elements will probably need more work as well (like clipping, etc.)
TwiCil added a bunch of global classes as well.
If this pollution causes troubles, we'll namespace them.
If only we could do that with chemical pollution as well…
We also tried GUT in the past, so we wanted to try WAT this time.
We're not sure which would be easier to extend in order to add
a Gherkin parser and runner.