Python Project in Python: Cop Chase Simulation

  • Thread starter Thread starter arunbg
  • Start date Start date
  • Tags Tags
    Project Python
AI Thread Summary
Python is an effective choice for developing a simulation project like a Cop Chase, where a human player controls a getaway car and AI controls the police. The language allows for a focus on designing game logic rather than dealing with complex data structures and memory management. Concerns about Python's interpreted nature are addressed, indicating that it generally performs well unless the project requires extensive numerical calculations. For such cases, libraries like NumPy can enhance performance. Overall, Python's capabilities align well with the project's requirements, making it a suitable option for beginners and experienced programmers alike.
arunbg
Messages
594
Reaction score
0
Hi,
I'm planning on doing a college project in the Python programming language. I have only started learning it.
The project is a simulation of a Cop Chase. The human player controls the getaway car, while the cops are controlled by the computer using strategy written in the program(something like basic AI).
The chase occurs in a custom built graph which models roads in a city.

What I want to know is if Python can be used effectively to design programs of this nature.
I am also a bit unsure of the interpreted nature of the language as well, since all languages I am familiar with use compilers.
Any tips or suggestions are much appreciated.
 
Technology news on Phys.org
Python is fine. In fact it is an excellent choice since you can spend more time designing the logic instead of writing data structures and findning memory leaks.

The speed will probably be fine, the only time interpreted is a problem is doing very large numbers of calculations - there are a number of maths addons for python (eg numpy) if you find you are having to do large amounts of matrix inversions for instance to solve the problem.
 
It sounds like an ideal application for Python. I strongly doubt that this program is going to be that numerically-intensive, but well-written Python is on par with C++ in many situations.

You'll quickly find that the interpreted nature of Python will make your task much easier, in fact.

- Warren
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top