Duplikat/Benchmark: Tischzahl vor $tische sichern (PowerShell-Variablen ohne Gross/Klein: $tische ueberschrieb -Tische, 0 Tische gestartet)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 17:50:25 +01:00
co-authored by Claude Opus 5.5
parent 2efc27d981
commit b4e2b9ee0b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ $s = ("cmd:$sx $motorArgs|MOTOR_FLACH=1 MOTOR_NL2=0 RAYON_NUM_THREADS=1 MOTOR_SH
# Tische: so viele wie Kerne, Schwerpunkt 1v5 (seine Suche auf fuenf Plaetzen); Saat je Tisch fest, fuer alle Fassungen gleich
$nur = @($Muster -split ',' | % { [int]$_ }); $anteil = @{ 1 = 0.5; 3 = 0.25; 5 = 0.25 }
$summe = ($nur | % { $anteil[$_] } | Measure-Object -Sum).Sum
$tische = [ordered]@{}; foreach ($m in $nur) { $k = [Math]::Max(1, [int][Math]::Round($Tische * $anteil[$m] / $summe)); for ($i = 0; $i -lt $k; $i++) { $tische["m$m-s$i"] = @($m, $i) } }
$tischZahl = $Tische # vor $tische (PowerShell unterscheidet Gross/Klein bei Variablen nicht)
$tische = [ordered]@{}; foreach ($m in $nur) { $k = [Math]::Max(1, [int][Math]::Round($tischZahl * $anteil[$m] / $summe)); for ($i = 0; $i -lt $k; $i++) { $tische["m$m-s$i"] = @($m, $i) } }
Log "Start Fassung $Fassung ($($zeilen[$Fassung])): $($tische.Count) Tische $($tische.Keys -join ', '), $Blaetter Blaetter je Tisch"
Log "X = $x"; Log "SHARINGAN = $s"
foreach ($e in @($fx, $sx, $sbp)) { Log ("{0} {1}" -f (Split-Path -Leaf $e), (Get-FileHash $e).Hash.Substring(0, 16)) }
+2 -1
View File
@@ -46,7 +46,8 @@ Log "Start ${Name}: X = $X (Schalter $($sx[2].Substring(0,16)), Exe $($sx[3].Sub
Log "X: $xs"; Log "Y: $ys"
$nur = @($Muster -split ',' | % { [int]$_ }); $anteil = @{ 1 = 0.5; 3 = 0.25; 5 = 0.25 }
$summe = ($nur | % { $anteil[$_] } | Measure-Object -Sum).Sum
$tische = [ordered]@{}; foreach ($m in $nur) { $k = [Math]::Max(1, [int][Math]::Round($Tische * $anteil[$m] / $summe)); for ($i = 0; $i -lt $k; $i++) { $tische["m$m-s$i"] = @($m, $i) } }
$tischZahl = $Tische # vor $tische (PowerShell unterscheidet Gross/Klein bei Variablen nicht)
$tische = [ordered]@{}; foreach ($m in $nur) { $k = [Math]::Max(1, [int][Math]::Round($tischZahl * $anteil[$m] / $summe)); for ($i = 0; $i -lt $k; $i++) { $tische["m$m-s$i"] = @($m, $i) } }
$aus_w = "$f\nacht-0112\werkzeuge\farm_sharingan_auswertung.py"
$laeufe = @{}; $entschieden = @{}; $letzte = Get-Date
while ($true) {