Trait Set Parameters in URL

Open
#77 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
web-dev

Research direction

Read issue #76 and the existing setTraits() flow in bot.service.ts first, then trace how URL parameters and togglableRules are handled. Decide whether the intended behavior is index-based activation or matching rule names, and consider the work complete when the chosen trait-selection flow consistently activates the expected traits for every bot.

Written by the indexing model from the issue text.

Description

Currently, URL parameters can take in and set the difficulty or randomize the traits in #76 .

If the community wanted to implement trait selection you would probably be able to parse through the activated bots similar to the current setTraits() in bot.service.ts.

Simple: A flow where it indexes through the filtered rules (togglableRules) and sets the rule.isActive = true at that index. This will mean that every bot activates the same traits.
Annoying: A flow where it indexes through the filtered rules (togglableRules) and sets the rule.isActive = true if the string of the rulename matches the param string. So users can pass a giant list of params for the traits if somebody wanted to 100% 'save' their setup.

Dominant language
HTML
Stars
40
Forks
19
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vagabottos/clockroot

All issues in Vagabottos/clockroot

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.