look at the little nerdy car go
http://rednuht.org/genetic_cars_2/
this need to become game, somehow
I am unsurprised that a weekend of simulation produces cars with more wheel than body, but I can't stop watching.
It reminds me of an old shareware game called Dirt Bike:
http://www.youtube.com/watch?v=leGlRL8MFc0C++ is for writing underlying code, and knowing how to do that in the minimal amount of memory or fastest possible time, not quick hacks that just get the job done without you needing to know what's going on.
As long as you stick to a reasonably safe subset of C++, anyway.
Ah Python, the language that will keep the C/C++ programmers who write all of the actual fast libraries for it employed for years to come.
Or at least until PyPy proves itself faster, more maintainable, and more portable than said libraries...
raw_input() returns a string. You need to convert it to an int with a = int(raw_input(...)).
This will crash if the user enters something that's not a number though. Although I could have sworn that your code should crash anyway seeing as you're doing a mathematical comparison with a string.
That's one of the differences between Python 2 and 3. In the former, everything was comparable, with some slightly odd defaults for otherwise incomparable objects. In this case, "22" > 122 because "str" > "int". Python 3 throws an exception for exactly this reason; clear errors are better than inexplicable misbehavior.
Speaking of Python, anyone here done anything cool with Django? I'm using it for a project soon, feeling a little trepidatious although I've heard it's pretty easy to pick up.
My day job is using it for online micropayments, and I can confirm that it's not hard to use. For example:
http://pick2give2.org/