3 ms·
I recently found https://github.com/rr-/pq-cli https://github.com/rr-/pq-cli which is a direct port of the pascal code https://bitbucket.org/grumdrig/pq/src/pq6
by shagie 5y ago
I recently found https://github.com/rr-/pq-cli https://github.com/rr-/pq-cli which is a direct port of the pascal code https://bitbucket.org/grumdrig/pq/src/pq6/ https://bitbucket.org/grumdrig/pq/src/pq6/ . Even things like "that's weird code - that can't be idiomatic python"
https://github.com/rr-/pq-cli/blob/bbe3842a2f0a11bf5bd639da3b6bec66465e3897/pqcli/mechanic.py#L891 https://github.com/rr-/pq-cli/blob/bbe3842a2f0a11bf5bd639da3...
lev = level
level = lev * qty
if not is_definite:
result = indefinite(result, qty)
matches the code from https://bitbucket.org/grumdrig/pq/src/d611931e37b45395e2fb69f6811920728557d3e9/Main.pas#lines-597 https://bitbucket.org/grumdrig/pq/src/d611931e37b45395e2fb69...
lev := level;
level := lev * qty;
if not definite then Result := Indefinite(Result, qty);
- nirui 5y agoIt seems there is a web page based version as well at https://bitbucket.org/grumdrig/pq-web https://bitbucket.org/grumdrig/pq-web. I did not inspect the code, but I did played it for a little. The most challenging part for me so far is to remember to periodically poke the mouse so screenlocker won't kick in.