Pythai is an artificial intellegence project written with Python. The ultimate goal is yet unclear but it will hopefully clarify at some point :) Currently it contains a basic genetic programming library and a nice car game that utilies genetic programming. A second game called Archon has been already added with a Javascript GUI (thanks to satusuuronen) but it doesn't yet use genetic programming.
Next step is to take GP into use with archon game.
- archon - Simple shootup game that has a Javascript/Django web UI (built by satusuuronen) and Python back-end. Genetic programming is not yet integrated to this game.
- gp - Genetic programming library for Python.
- car_tester.py - Car game tester without AI. Written by jruokonen.
- car_game_ai_generator - Uses genetic programming library to find algoritgh for the car game.
Main language in this project is python 2.x.
Python: Version 2.7 (32Bit) or higher is required.
You will need following additional python libraries: pygame, numpy http://www.pygame.org/download.shtml http://numpy.scipy.org/
Playing the Car Game:
You can play the great car game and try to beat the computer times!
-
python car_tester.py
- Arrows for moving and Esc to quit
**Executing Genetic Programming Process:**
Starts code generation process that tries to find the best possible solution for the car game.
-
Check the settings from the beginning of the file first then
-
python car_game_ai_generator.py
- Spacebar stops the code generation after the current generation is executed
- Esc quits the code generation without showing any results
- After code generation is finished the log can be found from "best_codes.txt" (if enabled)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar sam@hocevar.net
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- You just DO WHAT THE FUCK YOU WANT TO.