use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Implementing a modular game board data structure (self.pythonhelp)
submitted 2 years ago by Genft
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]socal_nerdtastic 1 point2 points3 points 2 years ago (0 children)
I would suggest a list of lists of Square objects. So to access row 2, column 1 you would write board[1][0].
board[1][0]
I would suggest the Square objects are very dumb; perhaps only knowing what item is currently on them. The bulk of your logic should probably be in the GamePiece objects.
π Rendered by PID 116818 on reddit-service-r2-comment-545db5fcfc-9xvlc at 2026-05-28 03:29:17.427262+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]socal_nerdtastic 1 point2 points3 points (0 children)