CLI-based maze-game: Difference between revisions
m
→{{header|Wren}}: Minor tidy
m (→{{header|Julia}}: background color) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,541:
{{libheader|Wren-iterate}}
An embedded script so we can use the ncurses library.
<syntaxhighlight lang="
import "./dynamic" for Enum, Tuple, Struct
Line 2,960:
<br>
We now embed this in the following C program, build and run it.
<syntaxhighlight lang="c">/* gcc
#include <stdio.h>
Line 3,121:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
|