Dangertech / tictactoe-ncurses

A completely overengineered Tic Tac Toe Game for your Terminal using the ncurses library
The Unlicense
3 stars 0 forks source link

Make member variables of the pixel class private #19

Closed Dangertech closed 3 years ago

Dangertech commented 3 years ago

How bout we just do basic programming 101 and make all variables of a class private to avoid all the address boundary errors that punch me in the faces every five seconds?

Instead, the program should use a setter function that checks, if this pixel even exists and cancels the operation if not? This would save me a lot of pain.