Hunt the Wumpus: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
m (→‎{{header|FORTRAN}}: corrected language name -> Fortran and syntax hihjlighting)
Line 1,402: Line 1,402:
</syntaxhighlight>
</syntaxhighlight>


=={{header|FORTRAN}}==
=={{header|Fortran}}==
This code names rooms by alphabetic character, thereby making use of index function and simplifying the input to single characters. Compiled with gfortran, source compatible with FORTRAN 2008. You're welcome to move this content to a separate webpage.
This code names rooms by alphabetic character, thereby making use of index function and simplifying the input to single characters. Compiled with gfortran, source compatible with FORTRAN 2008. You're welcome to move this content to a separate webpage.
Makefile
Makefile
Line 1,424: Line 1,424:
</syntaxhighlight>
</syntaxhighlight>
The paint subroutine is a place-holder where is envisioned to place additional symbols representing possible hazards and determined hazards. With ANSI graphics or actual pictures. Source:
The paint subroutine is a place-holder where is envisioned to place additional symbols representing possible hazards and determined hazards. With ANSI graphics or actual pictures. Source:
<syntaxhighlight lang="f08">
<syntaxhighlight lang="fortran">
! compilation, linux. Filename htw.f90
! compilation, linux. Filename htw.f90
! a=./htw && make $a && $a
! a=./htw && make $a && $a