Anitra Smith (anitra) wrote,
Anitra Smith
anitra

  • Mood:
  • Music:

Hooray good coding practices!

Just learned how to use the vector container class from the STL. This will stand me in good stead, as it is (generally) preferable to using arrays in C++. It also means I can pass by value, and use it as a return value - both very valuable to me for my AI homeworks. I really should have been using it in my previous homeworks, instead of doing recursion with *gasp* a global array (ick).

In any case, I'm hoping my partner for this AI project will understand this. It's pretty similar to what we were already doing. And it's going to make our work a whole lot easier :)

If anyone's curious about this assignment, we're making a program that can play Mancala (or Owari). For more information, see my professor's description of the project.
Subscribe

  • Milestones only a parent would appreciate...

    E was petting Bailey this evening, and all of a sudden, points to her anus. "Kitty... kitty poopy butt." Why yes, that is her butt(hole).…

  • Garden!

    Square foot gardening is going quite well this year... all except for the tomato plants I tried to start inside (got eaten - but other plants I…

  • Buttermilk (sour milk) brownies

    Best use of sour milk EVER. This makes a cake-like brownie. In fact, I have put whipped cream frosting on it and served it as chocolate cake for my…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments