Commit 599d81c9d21e67e090df95606967777677f578c0
1 parent
c22f45c6
Exists in
master
compile on Linux 64
Showing
6 changed files
with
48 additions
and
11 deletions
Show diff stats
.gitignore
@@ -31,4 +31,8 @@ | @@ -31,4 +31,8 @@ | ||
31 | /P*/* | 31 | /P*/* |
32 | __history | 32 | __history |
33 | *backup* | 33 | *backup* |
34 | -id | ||
35 | \ No newline at end of file | 34 | \ No newline at end of file |
35 | +id | ||
36 | +experiment_runner/experiment_runner | ||
37 | +experiment_runner/Participant1/ | ||
38 | +experiment_runner/Participant2/ | ||
39 | +experiment_runner/Participant3/ | ||
36 | \ No newline at end of file | 40 | \ No newline at end of file |
experiment_runner/experiment_runner.lpi
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | <PackageName Value="LCL"/> | 88 | <PackageName Value="LCL"/> |
89 | </Item2> | 89 | </Item2> |
90 | </RequiredPackages> | 90 | </RequiredPackages> |
91 | - <Units Count="15"> | 91 | + <Units Count="16"> |
92 | <Unit0> | 92 | <Unit0> |
93 | <Filename Value="experiment_runner.lpr"/> | 93 | <Filename Value="experiment_runner.lpr"/> |
94 | <IsPartOfProject Value="True"/> | 94 | <IsPartOfProject Value="True"/> |
@@ -155,6 +155,10 @@ | @@ -155,6 +155,10 @@ | ||
155 | <Filename Value="units/csv_writer.pas"/> | 155 | <Filename Value="units/csv_writer.pas"/> |
156 | <IsPartOfProject Value="True"/> | 156 | <IsPartOfProject Value="True"/> |
157 | </Unit14> | 157 | </Unit14> |
158 | + <Unit15> | ||
159 | + <Filename Value="units/helpers.pas"/> | ||
160 | + <IsPartOfProject Value="True"/> | ||
161 | + </Unit15> | ||
158 | </Units> | 162 | </Units> |
159 | </ProjectOptions> | 163 | </ProjectOptions> |
160 | <CompilerOptions> | 164 | <CompilerOptions> |
@@ -165,7 +169,7 @@ | @@ -165,7 +169,7 @@ | ||
165 | <SearchPaths> | 169 | <SearchPaths> |
166 | <IncludeFiles Value="$(ProjOutDir)"/> | 170 | <IncludeFiles Value="$(ProjOutDir)"/> |
167 | <Libraries Value="/usr/lib/gcc/x86_64-linux-gnu/4.9/"/> | 171 | <Libraries Value="/usr/lib/gcc/x86_64-linux-gnu/4.9/"/> |
168 | - <OtherUnitFiles Value="units;../../dependency/delphizmq;../../units"/> | 172 | + <OtherUnitFiles Value="units;../dependencies/delphizmq"/> |
169 | <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> | 173 | <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> |
170 | </SearchPaths> | 174 | </SearchPaths> |
171 | <Linking> | 175 | <Linking> |
@@ -177,9 +181,6 @@ | @@ -177,9 +181,6 @@ | ||
177 | </Linking> | 181 | </Linking> |
178 | <Other> | 182 | <Other> |
179 | <CustomOptions Value="-dUseCThreads"/> | 183 | <CustomOptions Value="-dUseCThreads"/> |
180 | - <OtherDefines Count="1"> | ||
181 | - <Define0 Value="UseCThreads"/> | ||
182 | - </OtherDefines> | ||
183 | </Other> | 184 | </Other> |
184 | </CompilerOptions> | 185 | </CompilerOptions> |
185 | <Debugging> | 186 | <Debugging> |
experiment_runner/experiment_runner.lpr
@@ -11,8 +11,6 @@ program experiment_runner; | @@ -11,8 +11,6 @@ program experiment_runner; | ||
11 | 11 | ||
12 | {$mode objfpc}{$H+} | 12 | {$mode objfpc}{$H+} |
13 | 13 | ||
14 | -{$DEFINE DEBUG} | ||
15 | - | ||
16 | uses | 14 | uses |
17 | {$IFDEF UNIX}{$IFDEF UseCThreads} | 15 | {$IFDEF UNIX}{$IFDEF UseCThreads} |
18 | cthreads, | 16 | cthreads, |
@@ -26,7 +24,7 @@ uses | @@ -26,7 +24,7 @@ uses | ||
26 | {$ENDIF} | 24 | {$ENDIF} |
27 | , StrUtils, Forms, Classes, sysutils | 25 | , StrUtils, Forms, Classes, sysutils |
28 | , form_matrixgame, game_actors | 26 | , form_matrixgame, game_actors |
29 | - , zhelpers, form_chooseactor | 27 | + , helpers |
30 | ; | 28 | ; |
31 | 29 | ||
32 | 30 | ||
@@ -80,7 +78,7 @@ const | @@ -80,7 +78,7 @@ const | ||
80 | end | 78 | end |
81 | else | 79 | else |
82 | try | 80 | try |
83 | - ID.Text := s_random(32); | 81 | + ID.Text := RandomString(32); |
84 | ID.SaveToFile(F); | 82 | ID.SaveToFile(F); |
85 | F := Copy(ID.Text,0,Length(ID.Text)-2); | 83 | F := Copy(ID.Text,0,Length(ID.Text)-2); |
86 | except | 84 | except |
experiment_runner/lib/x86_64-linux/experiment_runner.compiled
0 → 100644
@@ -0,0 +1,5 @@ | @@ -0,0 +1,5 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<CONFIG> | ||
3 | + <Compiler Value="/usr/bin/fpc" Date="1449313866"/> | ||
4 | + <Params Value=" -MObjFPC -Scghi -Cg -O1 -g -gl -l -vewnhibq -Fi/home/rafael/git/sc_split/experiment_runner/lib/x86_64-linux -Fl/usr/lib/gcc/x86_64-linux-gnu/4.9 -Fl/opt/gnome/lib -Fu/home/rafael/git/sc_split/experiment_runner/units -Fu/home/rafael/git/sc_split/dependencies/delphizmq -Fu/usr/share/lazarus/1.6.2/lcl/units/x86_64-linux/gtk2 -Fu/usr/share/lazarus/1.6.2/lcl/units/x86_64-linux -Fu/usr/share/lazarus/1.6.2/components/lazutils/lib/x86_64-linux -Fu/usr/share/lazarus/1.6.2/packager/units/x86_64-linux -Fu/home/rafael/git/sc_split/experiment_runner/ -FU/home/rafael/git/sc_split/experiment_runner/lib/x86_64-linux/ -dLCL -dLCLgtk2 -dUseCThreads experiment_runner.lpr"/> | ||
5 | +</CONFIG> |
experiment_runner/units/game_control.pas
@@ -121,7 +121,6 @@ const | @@ -121,7 +121,6 @@ const | ||
121 | implementation | 121 | implementation |
122 | 122 | ||
123 | uses ButtonPanel,Controls,ExtCtrls,StdCtrls,LazUTF8, Forms, Dialogs, strutils | 123 | uses ButtonPanel,Controls,ExtCtrls,StdCtrls,LazUTF8, Forms, Dialogs, strutils |
124 | - , zhelpers | ||
125 | , form_matrixgame | 124 | , form_matrixgame |
126 | , presentation_classes | 125 | , presentation_classes |
127 | , form_chooseactor | 126 | , form_chooseactor |
@@ -0,0 +1,30 @@ | @@ -0,0 +1,30 @@ | ||
1 | +unit helpers; | ||
2 | + | ||
3 | +{$mode objfpc}{$H+} | ||
4 | + | ||
5 | +interface | ||
6 | + | ||
7 | +uses | ||
8 | + Classes, SysUtils; | ||
9 | + | ||
10 | +function RandomString(ALength : Integer): Utf8String; | ||
11 | + | ||
12 | +implementation | ||
13 | + | ||
14 | +function RandomString( ALength: Integer ): Utf8String; | ||
15 | +const | ||
16 | + Chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'; | ||
17 | +var | ||
18 | + i: integer; | ||
19 | +begin | ||
20 | + Result := ''; | ||
21 | + for i := 1 to ALength do | ||
22 | + Result := Result + Chars[Random(Length(Chars)) + 1]; | ||
23 | +end; | ||
24 | + | ||
25 | +initialization | ||
26 | + | ||
27 | + Randomize; | ||
28 | + | ||
29 | +end. | ||
30 | + |