A random assortment of programming projects, with source
code, that Hexar has created.
L33TWar is a capture-the flag game involving tanks that are part
of either the red or the blue team. Each tank is programmable
with an extendable DLL interface, and you can pit up to two
different DLLs against each other in a game. This allows for
some very creative AI programming. L33TWar was written by Jens
Bergenstein, and unfortunately the author appears to not have
further information on the game up on the web anymore.
DynamicPoker is an extremely simple, graphical Poker game
which I wrote in C++ and Visual Basic. You start out with $500
and you can bet before each hand, and then you are dealt a
simple five-card draw hand and you get to pick which cards to
keep. You can play in a standard mode, a tutorial mode, or a
autoplay-mode where a "Tutorial Set" chooses the optimal move to
make. The program also tracks some relevant stats as to the
current game you're playing.
The thing that makes DynamicPoker interesting, at least for me, is that you can
write your own AI code for the program in the form of a DLL and then the DLL will
choose which cards to keep and which to discard. There are four AI agents that I
created, the simplest of which just picks a random selection of cards to keep, and
the most complicated one actually calculates the highest
probability * payout ratio for each move.
Mario Kart: Evasion Game
Dodge the Mario Kart 64 icons as they bounce around the playing
This 'program' was created using DHTML, with custom code for either
Netscape or Internet Explorer, depending on your browser. This is
guaranteed to fail on browsers which are not DHTML-capable.
View Netscape Source
View Explorer Source
<hype>Generate your very own, randomly-created maze with the
size, color, and specifications you desire! Print out the result for
hours (or minutes) of endless fun!</hype>
This program is a Java Applet which uses some smart thinking to create
a maze with exactly one solution, and always one solution. Plus, it
creates it randomly--but quickly. View the source code to see the
View Java Source
Whether you need a C library for accessing and using CGI (for form
processing and other misc. website uses), or a C++ one, Hexar's got
you covered. Compile programs with this source code and you won't have to
rewrite repetitive CGI code ever again.
ServerWS is a relatively simple Winsock2 wrapper class designed to make it
much easier to deal with the sockets code involved in hosting / connecting
to a game or application. The code is Windows-specific C++, and you can
download either the ServerWS source code, or a demo "chat" application
that uses it, HexChat.
All material Copyright (c) 2001-2018 Hexar
Please direct all inquiries, love letters, and hate mail to
A fantastic site featuring all kinds of game
The CGI Resource Index:
This site was created by a friend of mine, and features tons of resources
related to CGI (Common Gateway Interface) which is used for processing
forms, etc., in webpages. Take a look!