+// C'tor. Make random number generation less deterministic, for book moves
+Book::Book() {
+
+ for (int i = abs(get_system_time() % 10000); i > 0; i--)
+ RKiss.rand<unsigned>();
+}
+
+
+/// Destructor. Be sure file is closed before we leave.
+
+Book::~Book() {
+
+ close();
+}
+
+
+/// Book::close() closes the file only if it is open, otherwise
+/// we can end up in a little mess due to how std::ifstream works.
+
+void Book::close() {
+
+ if (is_open())
+ ifstream::close();
+}
+