From b4e2b9ee0b0c1fab9682f49049e28886ab3c50ab Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 3 Dec 2026 17:50:25 +0100 Subject: [PATCH] Duplikat/Benchmark: Tischzahl vor $tische sichern (PowerShell-Variablen ohne Gross/Klein: $tische ueberschrieb -Tische, 0 Tische gestartet) Co-Authored-By: Claude Opus 5.5 --- messung/farm/pokerbench-benchmark.ps1 | 3 ++- messung/farm/pokerbench-duplikat.ps1 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/messung/farm/pokerbench-benchmark.ps1 b/messung/farm/pokerbench-benchmark.ps1 index 7f3f0c9f..5fd1cedf 100644 --- a/messung/farm/pokerbench-benchmark.ps1 +++ b/messung/farm/pokerbench-benchmark.ps1 @@ -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)) } diff --git a/messung/farm/pokerbench-duplikat.ps1 b/messung/farm/pokerbench-duplikat.ps1 index e4c4e043..1df9e2c3 100644 --- a/messung/farm/pokerbench-duplikat.ps1 +++ b/messung/farm/pokerbench-duplikat.ps1 @@ -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) {