CLI-based maze-game: Difference between revisions
m
Automated syntax highlighting fixup (second round - minor fixes)
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
||
Line 32:
Note: I apologize of my bad English, I'm very sorry...
<br><br>
=={{header|Furor}}==
<syntaxhighlight lang=
###sysinclude terminal.uh
###sysinclude into.uh
Line 694 ⟶ 693:
Collected treasure = 1 Bombs = 3
</pre>
=={{header|Nim}}==
{{trans|Phix}}
{{libheader|nim-ncurses}}
This translation uses the binding for “ncurses” and have been tested on Linux (Manjaro).
<syntaxhighlight lang=
import ncurses
Line 1,070 ⟶ 1,068:
play()</syntaxhighlight>
=={{header|Phix}}==
<!--<syntaxhighlight lang=
<span style="color: #000080;font-style:italic;">-- demo/rosetta/CLI_maze.exw</span>
<span style="color: #008080;">without</span> <span style="color: #008080;">js</span> <span style="color: #000080;font-style:italic;">-- (wait_key(), get_key(), position(), clear_screen(), etc)</span>
Line 1,457 ⟶ 1,454:
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
<!--</syntaxhighlight>-->
=={{header|Wren}}==
{{trans|Nim}}
Line 1,466 ⟶ 1,462:
{{libheader|Wren-trait}}
An embedded script so we can use the ncurses library.
<syntaxhighlight lang="ecmascript">/* cli_based_maze_game.wren */
import "./dynamic" for Enum, Tuple, Struct
Line 1,885 ⟶ 1,881:
<br>
We now embed this in the following C program, build and run it.
<syntaxhighlight lang="c">/* gcc cli_based_maze_game.c -o cli_based_maze_game -lncurses -lwren -lm */
#include <stdio.h>
|