|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 441 (0x1b9) Types: TextFile Names: »cost.f«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Empire/cost.f«
function cost(own,h) implicit integer(a-z) integer cosval ( 14 ) character costab ( 14 ), own data cosval / 0, 2, 4, 6, 3, 5, 4, 1, 3, 3, 7, * 5, 11, 11/ data costab /'F','D','S','T','R','C','B','f','d','s','t', * 'r','c','b'/ do 100 i = 1, 14 100 if ( own .eq. costab ( i )) goto 200 pause 'BAD CALL TO FUNCTION COST!' cost = 0 return 200 cost = cosval ( i ) if ( i .ge. 9 ) cost = cost - h return end