Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate 2in1 function #46

Open
2 tasks
domcain opened this issue Oct 23, 2022 · 0 comments
Open
2 tasks

separate 2in1 function #46

domcain opened this issue Oct 23, 2022 · 0 comments
Labels
clean up easy couple lines of code changes enhancement New feature or request

Comments

@domcain
Copy link
Owner

domcain commented Oct 23, 2022

Is your feature request related to a problem?
- Currently code is confusing with unrelated actions occurring in a single function

Describe the solution you'd like

  • Copy the following into its' own function:
        # From Reds message potency, e.g. 1.x, x*10 becomes the chance of ignoring red team members.
        IgnoreRedchance = ((1 - action) * 10)
        # Green nodes only ignore Red when their certainty value is positive (leaning toward voting).
        if team == redTeam and node["Certainty"] > 0.0:
            # If the Green node doesn't tolerate Red's nonsense, they will ignore them. 
            if IgnoreRedchance >= node["Tolerance"]:
                node["Ignore Red"] = True
            # If they tolerate a bit, leave whether they ignore Red to chance (nonsense / tolerance of respective node).
            else:
                node["Ignore Red"] = random.random()<(IgnoreRedchance/node["Tolerance"]) 
  • Call the update ignore red team after red plays it's turn.
@domcain domcain added enhancement New feature or request easy couple lines of code changes clean up labels Oct 23, 2022
@domcain domcain added this to the Minimum Viable Product milestone Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean up easy couple lines of code changes enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant