Skip to content

Commit 06a7a1a

Browse files
committed
Add indents for format and continue lines
1 parent ebbfbe2 commit 06a7a1a

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

TourExec1.1.f

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ Program AxTest
4040
call Date(day)
4141
call TIME(timenow)
4242
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)
4444
RandomSeed = Jsecnds(0) ! uses elapsed time since midnight as random seed
4545
c RandomSeed=66222 ! Uses fixed random number
4646
Write(6,103) RandomSeed
47-
103 format(' RandomSeed = ', i16)
47+
103 format(' RandomSeed = ', i16)
4848
4949
write(6,85) noise
50-
85 format(' Noise (per choice) = ', f8.4)
50+
85 format(' Noise (per choice) = ', f8.4)
5151
5252
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)
5454
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.')
5656
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')
5858
ITotalColPoints = 0 ! Initialize Col's total points
5959
Do 30 row= minRow,maxRow ! normally 1 to 63
6060
rank = row
@@ -68,7 +68,7 @@ Program AxTest
6868
JB = 0 ! Col's previous move, reported to row
6969
Do 10 ColOutcomeType = 1,4
7070
Tally(ColOutcomeType) = 0 ! Zero Col's RTSP game count
71-
10 Continue ! End Do tallyType
71+
10 Continue ! End Do tallyType
7272
Do 15 Move = 1, Length(Game)
7373
RandomNumber = RAN(RandomSeed)
7474
RowChoice = KRowFunction(JB,Move, RowGameSc,ColGameSc,RandomNumber,Row,JA)
@@ -105,36 +105,36 @@ Program AxTest
105105
ColPairSc=ColPairSc+ColGameSc
106106
if (GameReport=1) Write(6, 110) Rank, Game, RowGameSc,
107107
1 ColGameSc, Tally(1), Tally(2), Tally(3), Tally(4)
108-
110 format(9i6, 10i3)
108+
110 format(9i6, 10i3)
109109
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
112112
if (GameReport=1) write(6, 115) RowPairSc, ColPairSc
113113
IRowPairSc(Row) = RowPairSc ! total over 5 games
114114
IColPairSc(Row) = ColPairSc
115115
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)
117117
if (GameReport=1) write (6, 120)
118-
120 format()
118+
120 format()
119119

120-
30 Continue ! End Do Row
120+
30 Continue ! End Do Row
121121

122122
C final report: calc tour score, write tour output
123123

124124
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')
126126
Do 40 Row = minRow,maxRow
127127
IRowTourPairSc = IRowPairSc(Row)/5
128128
IColTourPairSc = IColPairSc(Row)/5
129129
ITotalColPoints = ITotalColPoints + IColPairSc(Row) ! accumulate col points
130130
Write(6, 140) Row, IRowPairSc(Row), IColPairSc(Row),IRowTourPairSc,
131131
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
134134
TotalColPoints = ITotalColPoints ! to make floating point (total over 63*5 games)
135135
ColTourSc =(TotalColPoints/5 )/63 ! Ave per game over 63 pairs
136136
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)
138138
end ! Main Program
139139
C-----------------------------
140140
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
170170
if (J .eq. JB) KPavlovC = 0 ! coop iff other's previous choice= own previous ch
171171
C test3
172172
c write(6,81) J, JB
173-
c81 format(2i3, 'j,jb from test3')
173+
c81 format(2i3, 'j,jb from test3')
174174
Return
175175
end
176176
c------------------------------------------
@@ -287,7 +287,7 @@ FUNCTION K92R(J,M,K,L,R, JA)
287287
k92r = j
288288
c test 7/30
289289
c write(6,77) j, k92r
290-
c77 format(' test k92r. j,k92r: ', 2i3)
290+
c77 format(' test k92r. j,k92r: ', 2i3)
291291
RETURN
292292
END
293293
FUNCTION K61R(ISPICK,ITURN,K,L,R, JA)
@@ -1830,7 +1830,7 @@ FUNCTION K39R(J,M,K,L,R,JA)
18301830
K39R=JA ! Added 7/32/93 to report own old value
18311831
cc ax test
18321832
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)
18341834
IF(M.NE.1) GOTO 10
18351835
STEP=1
18361836
SUBSTP=1
@@ -1899,7 +1899,7 @@ FUNCTION K39R(J,M,K,L,R,JA)
18991899
DO 150 I2=2,3
19001900
cc ax test
19011901
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)
19031903
IF(OK(I1).EQ.0.OR. OK(I2).EQ.0) GOTO 150
19041904
IF(OK(I1).GE.OK(I2)) GOTO 150
19051905
IF(STEP.EQ.I1) STEP=I2
@@ -2819,7 +2819,7 @@ Integer FUNCTION GRASR(JPICK, MOVEN, ISCOR, JSCOR, RANDO,JA)
28192819
GRASR=JA ! Added 7/32/93 to report own old value
28202820
c Next line for debugging
28212821
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)
28232823
IF (MOVEN .NE. 1) GO TO 9997
28242824
DO 9996 I = 1, 4
28252825
NMOV(I) = 0

0 commit comments

Comments
 (0)