make
There is an alternate version which has controls that will make much more sense to those familiar with vi. See Alternate code below.
./prog
# Make your terminal as large as possible, possibly reduce your font size
# then...
./prog
This version has the difference of moving forwards, left, backwards and right,
where instead of w
, a
, s
and d
, you can use k
, h
, j
and l
.
make alt
# Make your terminal as large as possible, possibly reduce your font size
# then...
./prog.alt
..and maybe curse less than you might otherwise, but still probably curse (see below) :-)
This game does not use curses, but you may end up cursing.
The code is made more difficult to read using an innovative, right justified, reverse indentation style.
w
(forwards), a
(left), s
(backwards), d
(right)q
p
, then use any other key to resume /\
//\\
/ \
/______\
/\/\
cc -std=c99 -O3 prog.c -o prog
./prog
The only way I found to make it work is to use MSYS2. When using the MSYS2 shell you can install gcc via pacman.
cc -std=c99 -O3 prog.c -o prog
./prog.exe
-Wno-missing-prototypes
-Wno-shorten-64-to-32
-Wno-sign-conversion
-Wno-implicit-int-float-conversion
-Wno-missing-field-initializers
-Wno-implicit-float-conversion
-Wno-vla
-Wno-float-conversion
-Wno-comma
-Wno-shadow
-Wno-format
-Wno-empty-body
-Wno-misleading-indentation
-Wno-maybe-uninitialized
Score will be shown in the top left corner. My best was 156. If you beat that I’ll send you the image of a very expensive chocolate.
for
loops.!=
or ==
.