Previous: The Problem In The Middle Is The Problem At The Top

Next: Getting On With Painting

Go-Moku

Post #1654 • March 5, 2014, 3:50 PM

[image]

It was a fair question. Yes, the student said, he understands how to use object-oriented programming. The question is, why?

The answer is that OO can make your life easier once the problem in front of you takes on a certain level of complexity. Consider, for instance, the implementation of a two-player game of go-moku. How would you go about tracking the activity of two colors of stones on a 13 x 13 board, represented in the browser? The answer is here.

Comment

Subscribe

Offers

Other Projects

Legal

Design and content ©2003-2023 Franklin Einspruch except where otherwise noted