As projects are wont to do, it has taken on a life of its own. Hopefully, it will be helping me to get a new job and I'm thinking I could release it as my first release to CPAN. Soooo ... I need to write tests. (I actually have a to-do list a mile long, but that's another story.)
Now, I'm working on designing the tests first before throwing more code together. I have the tests for the basic classes, like Board, Piece, etc. But, the tests for the Game::AI branch are stumping me. One of the methods is an implementation of the minimax algorithm. How would I go about testing this?
Another concern I'm having is that I also want to use this project to get into XS and Perl/C development. (I'm thinking I could outsource the minimax work to some open-source library or the like.) But, like all refactorings, I need to be able to test it to make sure that the implementation works (if it's mine) and/or the linkages work (if it's not mine).
Help?
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to (OT) Help with test design by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |