I've occasionally wanted to look at example code on how to do something, and
not been able to find any. So, I've written examples of my own, some of which
can be found here. Most of the code under this directory is under a "Steal
this code" licence. Do whatever you want with it, but don't blame me for
anything.
Anyway, stuff that may be of use to other programmers:
-
Code to set up and manage the main socket for a MUD.
It could be similarly useful in writing other kinds of network servers.
-
Code for generating a random maze.
-
A really simple example using dlopen.
-
This is a primitive but playable implementation of
minesweeper on a hexagonal map.
-
A run-time code generation and dynamic load example:codegen.
-
Example code for a spherical map.
-
A sorting algorithm I've called mountain sort [Don't claim you invented this one].
Back to my main page.