philsupertramp / chess

stale project
0 stars 0 forks source link

Align position tuples #17

Closed philsupertramp closed 3 years ago

philsupertramp commented 3 years ago

It became a mess to handle (x,y) -> (row, column) conversions. Implement a central place were the conversion is happening, it just creates too much of overhead to keep in mind and especially the Game class became suuuuuuuper messy. In there we have some tuples in (x,y) = (row, column) and some tuples in (y,x) = (row, column) notation which is a hell, especially for more or less intoxicated developers.

To quote famous xkcd 323:

xkcd: Ballmer Peak

source

philsupertramp commented 3 years ago

fixed in 78ad90c1047809923bb4b6f390ae6901e10a3b23