summaryrefslogtreecommitdiff
path: root/sim.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-03-10 03:52:47 -0400
committerJohn Fultz <jfultz@wolfram.com>2019-07-21 02:02:55 -0700
commit6b32cf1706b17539597766bfb8ab454ea1e2be00 (patch)
tree1d376b6ccf543f8ef6ab4da078a47796deec4627 /sim.h
parentc5ae5d1137b9456fcb0b2e9e83c1bfc126522e92 (diff)
Migrate more stuff into sim messages.
Diffstat (limited to 'sim.h')
-rw-r--r--sim.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sim.h b/sim.h
index e6ba025..ee03b4a 100644
--- a/sim.h
+++ b/sim.h
@@ -20,6 +20,7 @@
#define QUACKLE_SIM_H
#include <atomic>
+#include <sstream>
#include <vector>
#include "alphabetparameters.h"
@@ -174,6 +175,7 @@ typedef vector<SimmedMove> SimmedMoveList;
struct SimmedMoveMessage
{
long id;
+ Game game;
LevelList levels;
vector<double> score;
vector<double> bingos;
@@ -182,6 +184,9 @@ struct SimmedMoveMessage
double wins;
bool bogowin;
+ std::ostringstream logStream;
+ bool isLogging;
+ UVString xmlIndent;
};
class Simulator
@@ -310,7 +315,6 @@ protected:
Rack m_partialOppoRack;
Game m_originalGame;
- Game m_simulatedGame;
ComputerDispatch *m_dispatch;
SimmedMoveList m_simmedMoves;