@@ -40,21 +40,21 @@ Program AxTest
40
40
call Date(day)
41
41
call TIME(timenow)
42
42
write(6,100) Version, day, timenow
43
- 100 format(' Ax TourExec Program Output, Version ' ,f6.2, ' .' , 1H, A10, A10)
43
+ 100 format(' Ax TourExec Program Output, Version ' ,f6.2, ' .' , 1H, A10, A10)
44
44
RandomSeed = Jsecnds(0) ! uses elapsed time since midnight as random seed
45
45
c RandomSeed=66222 ! Uses fixed random number
46
46
Write(6,103) RandomSeed
47
- 103 format(' RandomSeed = ' , i16)
47
+ 103 format(' RandomSeed = ' , i16)
48
48
49
49
write(6,85) noise
50
- 85 format(' Noise (per choice) = ' , f8.4)
50
+ 85 format(' Noise (per choice) = ' , f8.4)
51
51
52
52
write(6, 104) ColType
53
- 104 format(' Col Type, 1 = TFT, 2 = TF2F, 3 = Random, 4 = Pavlov. Col Type = ' , i3)
53
+ 104 format(' Col Type, 1 = TFT, 2 = TF2F, 3 = Random, 4 = Pavlov. Col Type = ' , i3)
54
54
if (movereport=1) write(6, 105)
55
- 105 format(' Move report: 1 means R, 2 means T, 3 means S, 4 means P for column.' )
55
+ 105 format(' Move report: 1 means R, 2 means T, 3 means S, 4 means P for column.' )
56
56
if (GameReport=1) write(6,101)
57
- 101 format(' Rank Game RScore CScore #ColR #ColT #ColS #ColP' )
57
+ 101 format(' Rank Game RScore CScore #ColR #ColT #ColS #ColP' )
58
58
ITotalColPoints = 0 ! Initialize Col' s total points
59
59
Do 30 row= minRow,maxRow ! normally 1 to 63
60
60
rank = row
@@ -68,7 +68,7 @@ Program AxTest
68
68
JB = 0 ! Col' s previous move, reported to row
69
69
Do 10 ColOutcomeType = 1 ,4
70
70
Tally(ColOutcomeType) = 0 ! Zero Col' s RTSP game count
71
- 10 Continue ! End Do tallyType
71
+ 10 Continue ! End Do tallyType
72
72
Do 15 Move = 1, Length(Game)
73
73
RandomNumber = RAN(RandomSeed)
74
74
RowChoice = KRowFunction(JB,Move, RowGameSc,ColGameSc,RandomNumber,Row,JA)
@@ -105,36 +105,36 @@ Program AxTest
105
105
ColPairSc=ColPairSc+ColGameSc
106
106
if (GameReport=1) Write(6, 110) Rank, Game, RowGameSc,
107
107
1 ColGameSc, Tally(1), Tally(2), Tally(3), Tally(4)
108
- 110 format(9i6, 10i3)
108
+ 110 format(9i6, 10i3)
109
109
if (movereport .eq. 1) write(6, 112) (MoveRecord(ir), ir=1,length(game))
110
- 112 format(' ' , 10i2, 2H, 10i2, 2H, 10i2, 2H, 10i2)
111
- 20 Continue ! End Do Game
110
+ 112 format(' ' , 10i2, 2H, 10i2, 2H, 10i2, 2H, 10i2)
111
+ 20 Continue ! End Do Game
112
112
if (GameReport=1) write(6, 115) RowPairSc, ColPairSc
113
113
IRowPairSc(Row) = RowPairSc ! total over 5 games
114
114
IColPairSc(Row) = ColPairSc
115
115
IColTourSc = IColTourSc +ColPairSc ! running total of col' s points
116
- 115 format (' Totals over 5 games: RowPairSc= ' ,I7, ' ColPairSc = ' , I7)
116
+ 115 format (' Totals over 5 games: RowPairSc= ' ,I7, ' ColPairSc = ' , I7)
117
117
if (GameReport= 1 ) write (6 , 120 )
118
- 120 format ()
118
+ 120 format ()
119
119
120
- 30 Continue ! End Do Row
120
+ 30 Continue ! End Do Row
121
121
122
122
C final report: calc tour score, write tour output
123
123
124
124
Write (6 , 135 )
125
- 135 format (' Rank RowSc ColSc AveRowSc AveColSc 2ndRndTFT 2ndRndTFT-Col' )
125
+ 135 format (' Rank RowSc ColSc AveRowSc AveColSc 2ndRndTFT 2ndRndTFT-Col' )
126
126
Do 40 Row = minRow,maxRow
127
127
IRowTourPairSc = IRowPairSc(Row)/ 5
128
128
IColTourPairSc = IColPairSc(Row)/ 5
129
129
ITotalColPoints = ITotalColPoints + IColPairSc(Row) ! accumulate col points
130
130
Write (6 , 140 ) Row, IRowPairSc(Row), IColPairSc(Row),IRowTourPairSc,
131
131
2 IColTourPairSc, ActualTFTTourSc(Row), ActualTFTTourSc(Row)- IColTourPairSc
132
- 140 format (i6, 4i8 , ' ' ,i8,' ' ,i8)
133
- 40 continue ! end final report
132
+ 140 format (i6, 4i8 , ' ' ,i8,' ' ,i8)
133
+ 40 continue ! end final report
134
134
TotalColPoints = ITotalColPoints ! to make floating point (total over 63 * 5 games)
135
135
ColTourSc = (TotalColPoints/ 5 )/ 63 ! Ave per game over 63 pairs
136
136
write (6 , 150 ) ColType, ITotalColPoints, ColTourSc
137
- 150 format (' Col Type= ' , i4, ' . Col Pts = ' , i7, ' Col"s Tour Sc = ' , f7.3 )
137
+ 150 format (' Col Type= ' , i4, ' . Col Pts = ' , i7, ' Col"s Tour Sc = ' , f7.3 )
138
138
end ! Main Program
139
139
C -----------------------------
140
140
Function KColFunction (J ,M ,K ,L ,R ,IColType ,JB ) ! Look up col rule, return col choice
@@ -170,7 +170,7 @@ Function KPavlovC(J,M,K,L,R,JB) ! Pavlov, JB is own (Col) previous move
170
170
if (J .eq. JB) KPavlovC = 0 ! coop iff other' s previous choice= own previous ch
171
171
C test3
172
172
c write(6,81) J, JB
173
- c81 format (2i3 , ' j,jb from test3' )
173
+ c81 format (2i3 , ' j,jb from test3' )
174
174
Return
175
175
end
176
176
c ------------------------------------------
@@ -287,7 +287,7 @@ FUNCTION K92R(J,M,K,L,R, JA)
287
287
k92r = j
288
288
c test 7/30
289
289
c write(6,77) j, k92r
290
- c77 format (' test k92r. j,k92r: ' , 2i3 )
290
+ c77 format (' test k92r. j,k92r: ' , 2i3 )
291
291
RETURN
292
292
END
293
293
FUNCTION K61R (ISPICK ,ITURN ,K ,L ,R , JA )
@@ -1830,7 +1830,7 @@ FUNCTION K39R(J,M,K,L,R,JA)
1830
1830
K39R= JA ! Added 7 / 32 / 93 to report own old value
1831
1831
c c ax test
1832
1832
c write(6,77) m, step, substp
1833
- c77 format (' test k39r. m, step, substp' , 3i3 )
1833
+ c77 format (' test k39r. m, step, substp' , 3i3 )
1834
1834
IF (M.NE. 1 ) GOTO 10
1835
1835
STEP= 1
1836
1836
SUBSTP= 1
@@ -1899,7 +1899,7 @@ FUNCTION K39R(J,M,K,L,R,JA)
1899
1899
DO 150 I2= 2 ,3
1900
1900
c c ax test
1901
1901
c if (m.eq. 51) write(6,71302) m, step, substp, i1, i2, ok(i1), ok(i2)
1902
- c71302 format (' test 71302 After 130. m, step, substp, i1, i2, ok(i1), ok(I2)' , 7i3 )
1902
+ c71302 format (' test 71302 After 130. m, step, substp, i1, i2, ok(i1), ok(I2)' , 7i3 )
1903
1903
IF (OK(I1).EQ. 0.OR . OK(I2).EQ. 0 ) GOTO 150
1904
1904
IF (OK(I1).GE. OK(I2)) GOTO 150
1905
1905
IF (STEP.EQ. I1) STEP= I2
@@ -2819,7 +2819,7 @@ Integer FUNCTION GRASR(JPICK, MOVEN, ISCOR, JSCOR, RANDO,JA)
2819
2819
GRASR= JA ! Added 7 / 32 / 93 to report own old value
2820
2820
c Next line for debugging
2821
2821
c if(moven. eq. 57) write(6,99) jscor
2822
- c99 format (' TEST from GRASR at move 57. jscor = ' , i6)
2822
+ c99 format (' TEST from GRASR at move 57. jscor = ' , i6)
2823
2823
IF (MOVEN .NE. 1 ) GO TO 9997
2824
2824
DO 9996 I = 1 , 4
2825
2825
NMOV(I) = 0
0 commit comments