summaryrefslogtreecommitdiffstats
path: root/TrollTron.cpp
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2011-11-29 01:58:45 +0100
committerDominique Martinet <asmadeus@codewreck.org>2011-11-29 01:58:45 +0100
commitd9154634911f757dc645f653d3b42d428dd4f21f (patch)
treed43a5097687d8660cea7d659a78dde06b7196562 /TrollTron.cpp
parentf096cba3b737eb01e657e76187cf140f4c7a1acc (diff)
more AI work, just gotta make the compiler happy now... where's mario when we need him :) (uncomment part in game to call the think function
Diffstat (limited to 'TrollTron.cpp')
-rw-r--r--TrollTron.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/TrollTron.cpp b/TrollTron.cpp
index 56e1cc6..80df411 100644
--- a/TrollTron.cpp
+++ b/TrollTron.cpp
@@ -11,6 +11,8 @@ int main(int argc, char **argv) {
// This will define the size and position, in pixel, of the window, originally. It can be moved and resized.
mainWindow.create("Troll Tron", 100, 100, 320, 320);
+ srand(time(NULL));
+
// This will define the grid
Game game(200, 200, 3);