FIGHT! is a free coin game for 2-6 players, from Cheapass Games, in which the players take turns to play coins from their pile, to the middle of the table, and take change up to a penny less than the value of that coin. The objective is to be the last player with any coins left.
C++ FIGHT! (or "cppFIGHT") is a free, open, AI framework and tournament system for FIGHT! written in C & C++.
To use C++ FIGHT! simply download, compile the included source files, and run.
The program will output the results of a tournament to "stdout" (text console).
Your next step is to read through the header and example AI player files to see how it works,
the code is designed to be easy to follow, and is well commented.
For C++ programmers the files to look at are cppFIGHT.h and example.cpp.
C programmers, or programmers using other languages with support for C linkage, should look at cFIGHT.h and cexample.c.
It's very simple. There is even a .dsp file for MSVC++ users.
You should be able to knock up a working player a single 32 line C++ class, or less than 100 lines of C code.
Happy Coding!
Coming Soon*: The First International C++ FIGHT! AI Tournament!
There is a low traffic mailing list for C++ FIGHT! users on yahoo groups. To join, send an email to: cppfight-subscribe@yahoogroups.com or visit: http://groups.yahoo.com/group/cppfight/
Warning: The "Junk Mail" filter for hotmail, and perhaps other email spam protection services sometimes mistakes email from yahoo groups mailing lists as spam, unless you tell them otherwise.
| [C++ FIGHT! v1.8b] | [Unix stuff for C++ FIGHT!] |
|---|---|
|
The C++ FIGHT! distribution file contains all the source files required to develop & test FIGHT! player AIs using C or C++. C++ FIGHT! has been tested on:
|
"Unix stuff" is an optional extra for C++ FIGHT! users under UNIX, by Andy Sveikauskas, which is meant to be untarred in the same directory as the zip package, and contains a makefile, a readme file, a manpage, and a script for loading and running tournements using AI's compiled as DLLs. Unix stuff for C++ FIGHT! has been tested on:
|
As C++ FIGHT! is quite new, so there is very little here at the moment, but you can change that; if you've written an AI for C++ FIGHT! and would like to see your name up in lights, this space is reserved for you.
Simply upload your Player code to the "C++ FIGHT! User AIs" folder here: http://groups.yahoo.com/group/cppfight/files/,
or email it to me and, assuming it doesn't do anything naughty, I'll add it to the list. Note: All files should be posted ZIP'd.
| Title | Author | Download | Comments |
|---|---|---|---|
| SmartyPants (v2) | Thad | [ local / yahoo ] | Learning AI, using a Min/Max search with Alpha/Beta pruning and an evaluation function controlled by a Genetic Algorithm. Very strong all rounder, especially in 1 on 1. |
| Beanie | racso | [ local / yahoo ] | Heuristic based AI, GA trained off line. Strong all rounder, especially in 1 on 1. |
| That's not AI! | Wookie | [ local / yahoo ] | Rule based AI. Very strong in multiplayer games. Also beats all the examples in 1 on 1. |
The following web sites have linked to C++ FIGHT!:
* Note: Okay, so it's been over a year since I said "Coming Soon" and still no contest, so don't sit on your AI players thinking "it'll be any day now", because I'm a busy man, and it might not be.
|
Thad's Homepage (c) Wednesday 17th May 2006 T.Frogley With thanks to notagoth.org |
|
| [ source ] |