Creating Games with Turbo C

Hello, I'm just new here. I wanted some people to help me with my project. We were tasked to do a game using Turbo C. I already found some games that has source codes like snake, tic toe, etc. I wanted to be slightly different 'cause I know my classmates would just go and research already made codes and make it their own. Can you guys help me? I wanted to ask a lot of questions for our Project. I was planning of creating a visual-novel-like game and a piece of sword slashing or turn based game. What statements can I use with those games?

If this is for a class, I would suggest you think of something that would use the skills you've learned in class rather than trying to do something that will take a few months just to learn the basics of techniques you've never touched.
Look at something like Mastermind, Tic … Read More

I wanted to know how to put dialog boxes or such. 'Cause they're a bit improtant to me
for that visual-novel-like game. Will my proposed games will work? I don't care about the quality, as long as it runs the way I want it to be.

For using this function you need to include windows.h # include <windows.h> but I don't know if Turbo C supports this header. Probably they have something called dos.h header. But it is always preferred not to use Turbo C as its very old.

If this is for a class, I would suggest you think of something that would use the skills you've learned in class rather than trying to do something that will take a few months just to learn the basics of techniques you've never touched.

Look at something like Mastermind, Tic Tac Toe, Craps, Hangman. Something that won't take years to design and implement.

The key is design!!! Don't just sit an the computer and start programming. Sit as a desk and figure out how the game is supposed to work and figure out all the details of input, the play, the decisions, the output -- everything to make the game work. Once you figure all that out, it'll be fast and easy to actually write the code...

So don't touch the computer until you've figured out everything you need to do.

Uhh.. I need help in understanding this code. My friend wants me to understand this. I understand some parts of it.. But I don't really know how everything goes. Please I need help. Here's the code, It's a game about Snake and Ladders.

Oh sorry. My bad. I don't know how the " void " part goes. I... just really don't know why it was there in the first place.. Specific void parts that I don't know was the void main,void details and void pass.I know gotoxy and such... j-just that void.. urgh..

A "void" is an empty area - like "space is mostly a huge void". It also means "amounting to nothing" as in "the lawsuit was made null and void".

So a void function is any function that returns nothing. It may say "return" at the end of it, but it will have no value after the word "return", and the use of the "return" word is strongly discouraged.

Yes. The void part only refers to the return value of the function, not the actual computation. The function runs; it simply doesn't have a return value.

BTW, strictly speaking, it should be int main() not void main(). The main() function does in fact return a value to the operating system, which is used to test the status of the program. The void main() is a common misunderstanding, often perpetuated by 'professors' who don't actually know what they are supposed to be teaching, but it is not portable and only some compilers accept it at all.

Functions returning void are conceptually more basic than functions returning a non-void type. You're placing an unreasonable weight on the word "void" to mean something far more complex than it really does.

Can I have your explanation on what voids are? Maybe I can understand it. ._.

Maybe you can, but since I already explained what void means in the context of a return type and you didn't understand it, I'm not optimistic that repeating myself will change things until you have a stronger understanding of functions in general.