I have coded a snake-like game called "Kurve" (There is an original called "Zatacka - Achtung die Kurve" wich used to run on DOS). Now, as it runs fine on windows and linux platforms, I want to add an AI-player to it to create a singeplayer-mode. My problem is, I never have done any AI-programming, and my collision-detection is weak too.
FACTS (the way it works so far)
- For 2 - 6 Players on one PC (no LAN does exist so far)
- Controlled via Keyboard, 1 Player with the mouse-buttons
- Coded in C++
- Grapics, Input via SDL
- Rendering via openGL
- Minimum requirement: worked fine with my laptop set to 550Mhz singlecore
- Collision-checks by openGL-select-buffer (this should improve)
- imformation on the trail is stored in linked list of structs
- a struct contains 2 points (one for the left and one for the right) and additional information
My current idea is to allways check several possible ways if something is there and choose one possible (where nothing is in) at random
At this point I need your help. How can I check if someone is there in a fast and elegant way? The openGL select buffer does not seem to be made for that nor does it for collisions at all.
Thank you in advance
Katta
ps: excuse any bad spelling and any wrong use of words

Screenshots
[ # 1 ] Singleplayer with "dead" opponents is boring
[ # 2 ] Many AI controlled players
[ # 3 ] extra-point area & colors
[ # 4 ] the "light" where s.o. crashed
DOWNLOAD
Checkout github for the latest source & binaries (http://github.com/kattalunikes/Kurve). The game should work fine on any Linux, Mac or W32 system. It has been sucessfuly tested on: gentoo-64bit | gentoo-32bit | Ubuntu 11.04 alpha | Windows XP | Windows 7
Changes:
2011-02-27
-- download link -> v0.03
-- Added a screenshot
2011-02-28
-- 2 new screenshots
-- download link -> 0.03_2
2011-03-06
-- GitHub !!