If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You can create a program like this?

Hello Guys,

Someone can tell me if it is possible to create a program like Robocode, a game controlled at runtime by an external source file in visual c ++? For example create a checkers game where there would be an external source file, read at runtime, which would play automatically, with artificial intelligence. You can? If yes, how?

Re: You can create a program like this?

Oh, sorry for my bad english, i wanted to say: "it is possible create a program like this?" how to interpret the code at runtime with c++? I have no idea how to do...

So do you think that someone is going to post thousands, if not millions of lines of code? What answer are you expecting us to give you?

The best answer came from ovidiu -- hard work, study, and a lot of sweating. What you ask for is very advanced, and must be broken down into individual modules. Even an advanced programmer would have sleepness nights trying to come up with all of these details you described.

Re: You can create a program like this?

Originally Posted by Paul McKenzie

So do you think that someone is going to post thousands, if not millions of lines of code? What answer are you expecting us to give you?

The best answer came from ovidiu -- hard work, study, and a lot of sweating. What you ask for is very advanced, and must be broken down into individual modules. Even an advanced programmer would have sleepness nights trying to come up with all of these details you described.

Regards,

Paul McKenzie

Millions of lines of code to read and execute source code? I do not know if you understood my idea or seen the Robocode, but would for example something like this: There would be a square on the screen and the user would send a source code with predefined functions to move the square, for example "move up "," move down ", etc.. I'm not asking you to do this for me. I do not have much experience with object-oriented language, I am still studying, just wanted to know the possibility and viability of doing something. I think it would be easier with Java, being an interpreted language, but wanted to do in C + +, however I can not find stuff on the internet about it. Java would be more viable?

Re: You can create a program like this?

That's not "source code", that's just a file that contains instructions. That could be fairly simple. Read the file, match the instruction to an action and execute the action. Your question is still pretty vague to give a detailed answer.

Re: You can create a program like this?

Originally Posted by ordan1

There would be a square on the screen and the user would send a source code with predefined functions to move the square, for example "move up "," move down ", etc.. I'm not asking you to do this for me. I do not have much experience with object-oriented language, I am still studying, just wanted to know the possibility and viability of doing something.

Of course someone or some team of programmers can write such a program.

I think it would be easier with Java, being an interpreted language, but wanted to do in C + +, however I can not find stuff on the internet about it.

And what is the "stuff" you're looking for? Wouldn't it be source code or libraries?

Re: You can create a program like this?

Originally Posted by GCDEF

That's not "source code", that's just a file that contains instructions. That could be fairly simple. Read the file, match the instruction to an action and execute the action. Your question is still pretty vague to give a detailed answer.

Have you seen Robocode?

I wanted to do something like this: http://ideone.com/QL9nU5
The user would play with your code, without interfering in the source code or visual game

Re: You can create a program like this?

You can? If yes, how?

By first producing a program design and then crafting the correct c++ code from the design. The hard part is nearly always producing the design because that is where most of the thinking has to be done. What input/output is needed, what classes are needed, how they interface with each other etc etc etc. None of this is directly related to c++. The design if done properly could then be coded in any suitable language.

All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.