Anitra Smith (anitra) wrote,
Anitra Smith

  • 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.

  • 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…

  • Mrs. Cooley's coffee cake

    For posterity. No idea where she got the recipe. 1 cup flour 2 tsp. baking powder 1 tsp. cinnamon 4 T. melted butter (or coconut oil) 1/2 cup…

  • White Chili

    This is a kid-friendly recipe adapted from the November 2011 Parents magazine. Recently discovered I could start it with uncooked chicken if I cook…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded