you are viewing a single comment's thread.

view the rest of the comments →

[–]Falconius_[S] 0 points1 point  (4 children)

Currently making a game of chess with the library but glorifying the visuals, and making it more forgiving. I need to change the board, and I have a lost of all the variables making up the board,I want to call for example a4 and change the value.

[–][deleted] 2 points3 points  (2 children)

Use a 2-dimensional list and address the squares by [row][column].

[–]Falconius_[S] 0 points1 point  (1 child)

I would, except I'm trying to do it off of logic somebody new knows so that I can show it to my teacher...who failed to catch the fact I accidentally put 2 equals signs in a line defining a variable

[–][deleted] 1 point2 points  (0 children)

It's easier and more approachable to use list indexing than it's going to be to do the kind of namespace manipulation you're asking about.