|
From: | Øystein Schønning-Johansen |
Subject: | Re: [Bug-gnubg] GNUBG / GNU Coding Standards - C and or C++ - feedback wanted |
Date: | Fri, 14 Feb 2014 14:36:28 +0100 |
Let me make up the same program snippet with C++ syntax:Board board = Board();Evaluator* eval = new gnubg();Dice roll = Dice( 3, 1);Move best = eval->find_best_move( &board, &roll );
std::cout << "Best move is: " << best;// I just made up this code based on the abstractions I listed in the paragraph above. Note the syntax is C++.
// The code is not tested or compiled ... And my C++ is a bit rusty, so there probably bad errors.
[Prev in Thread] | Current Thread | [Next in Thread] |