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

Factors of Offensive and Defensive Strength #84

Open
ffeiler opened this issue Jun 5, 2020 · 1 comment
Open

Factors of Offensive and Defensive Strength #84

ffeiler opened this issue Jun 5, 2020 · 1 comment

Comments

@ffeiler
Copy link
Contributor

ffeiler commented Jun 5, 2020

During inspecting the simulation strategy, I noticed two decisions I'd like to question.

1) Defensive Strenght

// less than 3 defence players would be extra risky
		if ($noOfDefence < 3) {
			$strength = $strength * 0.5;
			
			// but more than 4 extra secure
		} else if ($noOfDefence > 4) {
			$strength = $strength * 1.5;
		}

I like the idea of strengthening tactics with more than 4 players. The problem is: Such tactics are not possible to line up from the beginning. You can only achieve this by substituting a player during the match. Therefore, I'd like to see the possibility of fielding 5 player defenses.

2) Offensive Strenght

// strikers (count only first two doubled since too many strikers are inefficient)
        if ($noOfStrikers < 3) {
	    $strength += $player->getTotalStrength($this->_websoccer, $match) * 1.5;
	} else {
	    $strength += $player->getTotalStrength($this->_websoccer, $match) * 0.5;
	}

I'd argue that the imposed penalty of only considering half the strength of the third attacker is way too much. Nearly all RL teams play with LW-CF-RW and that should be possible in our simulation too. Additionally, there is a strong bias for defensive tactics present in the websoccer, and removing this penalty could yield more balanced tactics options. Our workaround is currently to allow LW/RW to play as LM/RM but I do not like it because it's constraining our tactical choices strongly.
I'd suggest either replacing the condition with ($noOfStrikers < 4) or removing the penalty for the third player completely.

@ceriyvolck
Copy link

ceriyvolck commented Aug 27, 2020

@ffeiler 5 player defenses formation.twig
`<select class="input-mini wstooltip" name="formation_defense" title="{{ i18n.getMessage("player_position_defense") }}">

		{% for i in 1..5 %}

			<option value="{{ i }}"{% if setup.defense == i %} selected{% endif %}>{{ i }}</option>

		{% endfor %}`

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

No branches or pull requests

2 participants