ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Q: Best Prog Lang for Building a Text-Based Flight Simulator?

(1/3) > >>

CodeTRUCKER:
Hi,

Been awhile since I have been in the coding environment.  Due to my vision getting worse I am interested in taking my hobby of flight simulation from the GUI to the Command Line.

The program will involve physics, time and an internal 3D "space."  Essentially, the screen would present a list of information, the "pilot" would make a selection then process the choices and present the new information back on the screen.  While this would probably not serve inexperienced sim flyers, it would be usable for experienced pilots both real and simulated.  With the addition of text-to-speech and speech-to-text, I can see someone who knows aviation might enjoy "flying" while driving over a long distance.  I know I would.  Obviously, this might allow sight-challenged people to enjoy some aspects of flight simulation.

Frankly, this is going to be lots of work to start with and will only become more involved as more realism, features and (hopefully) interactive Air Traffic Control.  This is why I would be very appreciative of any comments for the coding language.  Questions are most welcome.

Thanks,
Calvin

mouser:
I think no matter what it will be an interesting and challenging project.  One of the nice things about doing a "text-based" simulation is that it will really force you to focus on the core simulation and structures rather than getting caught up in graphics, etc.

As for the best programming language -- one of the other nice things about doing text-based coding is that you can use almost any programming language.. speed won't be an issue and neither will library support, etc.

So I would fall back on my default language suggestion these days to use Python (sounds strange coming from a C++ lifetimer).

But mainly I would suggest you do most of your coding virtually in the form of planning, before you ever start coding.

CodeTRUCKER:
Hey Mouser!

Long time no talk to! I thought I got lost or something because I tried to login two or three times and was "blocked."  I almost didn't try tonight.  I'm glad I did. :) 

I think no matter what it will be an interesting and challenging project.  -mouser (October 12, 2017, 09:49 PM)
--- End quote ---
Thanks for the input.  One of the best things about this project is I can focus on my strengths of over 2000 hours of simulated flying in all kinds of aircraft and several hours in a number of real aircraft large and small.

As for the best programming language -- one of the other nice things about doing text-based coding is that you can use almost any programming language.. speed won't be an issue and neither will library support, etc.
--- End quote ---
I was hoping someone would say this.

So I would fall back on my default language suggestion these days to use Python
--- End quote ---
Thanks.  Python never crossed my mind, although I played with it some years ago.

But mainly I would suggest you do most of your coding virtually in the form of planning before you ever start coding.
--- End quote ---
When I was coding COBOL, DB2, and (my favorite) CICS back in the '90s it was normal to spend weeks/months in planning and prototype before committing hours to coding.  Today, a programmer can get instant results and debug.  Back then we condsidered getting our printouts (there were no screen views) in under four hours as something short of a miracle.  But, that was a good thing as we really thought through the whole process and not just take a guess and see how it worked out.  LOL

mouser:
I'm an OOP (object-oriented programming) fanatic.  I believe that object-oriented programming helps organize the way you think about a project.  So for this idea (as for most things non-trivial), I think the only strong recommendation I would make is to use an OOP language.

CodeTRUCKER:
...
I think the only strong recommendation I would make is to use an OOP language.
-mouser (October 12, 2017, 10:15 PM)
--- End quote ---
Python fills this bill, does it not?  Ha!  Funny thing is I have always wanted a project that would be a good one for Python. :)

Navigation

[0] Message Index

[#] Next page

Go to full version