Page MenuHomePhabricator

Correct an issue when winning "arc anoid" with certain terminal dimensions
ClosedPublic

Authored by epriestley on Jun 1 2021, 6:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 18, 9:41 AM
Unknown Object (File)
Sun, Mar 10, 6:31 PM
Unknown Object (File)
Feb 22 2024, 3:35 AM
Unknown Object (File)
Feb 5 2024, 1:04 PM
Unknown Object (File)
Feb 4 2024, 1:00 AM
Unknown Object (File)
Jan 2 2024, 10:51 AM
Unknown Object (File)
Dec 27 2023, 2:01 AM
Unknown Object (File)
Dec 18 2023, 8:02 AM
Subscribers
None

Details

Summary

See PHI2085. Python 3 is stricter about integers and floats than Python 2 was, and we can end up passing a float where an integer was expected if the player wins "arc anoid" using a terminal with certain (most?) character dimensions.

Test Plan
  • Modified "arcanoid.py" to win instantly.
  • Adjusted terminal window to 80x24, ran "arc anoid", reproduced crash.
  • Ran "python2 arcanoid.py" and observed old victory animation behavior.
  • Applied patch.
  • Ran "arc anoid" and observed identical victory animation behavior.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from Correct an issue when winning "arc anoid" with an odd terminal width to Correct an issue when winning "arc anoid" with certain terminal widths.Jun 1 2021, 6:10 AM
epriestley edited the summary of this revision. (Show Details)
epriestley edited the test plan for this revision. (Show Details)
epriestley retitled this revision from Correct an issue when winning "arc anoid" with certain terminal widths to Correct an issue when winning "arc anoid" with certain terminal dimensions.
This revision was not accepted when it landed; it landed in state Needs Review.Jun 1 2021, 6:10 AM
This revision was automatically updated to reflect the committed changes.