Jump to content

Hello! ^^

 

I am studying programming engineering at university 

and I've got task to write a DOS program/game

it should use only DOS commands, no C,pascal, or any other programming language. Only DOS commands

It should have 7+ pages of code

 

I do not ask you to write :D

But maybe you know some sites where I can find simple DOS programs/games with "source code"?

Or at least can you suggest something to write to fill 7 pages with commands?

btw, I'll need to do everything under Windows cmd

 

I can write it by myself, but I feel like it is a waste of time... I'd better continue my c++ projects rather than DOS, that's why I am searching for already written program/game.

 

Hope you understand and thanks in advice :)

Link to comment
https://linustechtips.com/topic/472083-help-find-dos-programgame/
Share on other sites

Link to post
Share on other sites

I really don't understand and I want to help. Dos commands were not used to write games as far as I know. They were used in that autoexec.bat file.

Do you mean Basic of Qbasic that was included free with Dos based machhines? I know they included source code for two small programs: gorilla.bas and mortgage.bas but basic is a programming language just like C and Pascal and Fortan and Cobol. I thought those were kinda dead launguages and Perl was the new launguage.

Link to post
Share on other sites

I really don't understand and I want to help. Dos commands were not used to write games as far as I know. They were used in that autoexec.bat file.

Do you mean Basic of Qbasic that was included free with Dos based machhines? I know they included source code for two small programs: gorilla.bas and mortgage.bas but basic is a programming language just like C and Pascal and Fortan and Cobol. I thought those were kinda dead launguages and Perl was the new launguage.

No, I need to use only DOS commands

Those commands which can be found in cmd help.

 

You can create variables in DOS with SET command, soo it is possible to make some very simple "game", like text adventure or sth like minesweeper.

And no actual graphic, or course :D Draw with symbols and text :P

 

It is also possible to create a "program" which can copy files, search for them, but it will be too short, I need 7 or more A4 pages or code :D

 

I know how to do it, but I just need to find a completed .bat program, because I don't feel like it is profitable to spend so much time on DOS, that's it ^^""

Link to post
Share on other sites

Gosh I would love to help but a .bat file that's 7 PAGES long I would not know where to start. I  tried a lil programing, Wrote a "hello world" program in Masm for Dos and said forget this I am driving a truck for a livin. I truly admire what your learning.

    I used to collect old computers and I would not even know where to start. I hope there not forcing you to learn CP/M

Well best of luck, sorry I couldn't help:(

Link to post
Share on other sites

Gosh I would love to help but a .bat file that's 7 PAGES long I would not know where to start. I  tried a lil programing, Wrote a "hello world" program in Masm for Dos and said forget this I am driving a truck for a livin. I truly admire what your learning.

    I used to collect old computers and I would not even know where to start. I hope there not forcing you to learn CP/M

Well best of luck, sorry I couldn't help:(

Don't worry, it's OK ;)

Thank you for your willingness to help! ^^ :D

Link to post
Share on other sites

so basically you are to write a text based game / program? 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

so basically you are to write a text based game / program? 

What do you mean by saying text based?

ofc I can use text in that program/game but..

OK, here is the more detailed explanation of the task :D

 

I need to write ANY program or game for DOS (cmd), BUT

1) I need at least 7 pages of code. If I'll have a lot of text, I'll need to store it in a separate .txt file, otherwise, it will not be accepted.

2) I need to use only DOS commands. No other programming languages. Only DOS (cmd) commands.

3) I don't want to write this program, I want to copy and edit, because I think it is a waste of time... ^^""

(I don't ask you to write the program. You can link me something)

Link to post
Share on other sites

Yeah so just create some kind of text based adventure, like a multiple choice dungeon quest kind of thing like back in the old days of the Atari/C64... You can even come up with some coloring logic and an emulated inventory/interaction screen system (think basic ASCII art & reuse). I should imagine you'd even be able to implement some rudimentary design pattern/s around that lot at a push. Hell you could even implement a whole graphics engine using ASCII if you wanted to...

 

Honestly this is total and complete childsplay - all you will need is the MSDN listing for the windows terminal commands and your imagination. That said it's a totally pointless exercise in my opinion... which is probably why you are struggling to find resources where this lunacy has been attempted/done before; leading you here to inflict it upon us?

 

Really... I do facepalm at the kind of things that universities try to pass off as education these days.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

Yeah so just create some kind of text based adventure, like a multiple choice dungeon quest kind of thing like back in the old days of the Atari/C64... You can even come up with coloring logic and an emulated inventory/interaction screen system. I should imagine you'd even be able to implement some rudimentary design pattern/s around that lot at a push.

 

Honestly this is total and complete childsplay - all you will need is the MSDN listing for the windows terminal commands and your imagination. That said it's a totally pointless exercise in my opinion... which is probably why you are struggling to find resources where this lunacy has been attempted/done before; leading you here to inflict it upon us?

 

Really... I do facepalm at the kind of things that universities try to pass off as education these days.

 

Well i can see it being ok for teaching you to to make code with ifs and what not but batch.....

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

If you're up for a challenge, this may not fill 7 pages, but try creating a DOS version of battleship. You can use Xs for misses and *s for hits.

˙ǝɯᴉʇ ɹnoʎ ƃuᴉʇsɐʍ ǝɹɐ noʎ 'sᴉɥʇ pɐǝɹ oʇ ƃuᴉʎɹʇ ǝɹɐ noʎ ɟI

Link to post
Share on other sites

Well i can see it being ok for teaching you to to make code with ifs and what not but batch.....

 

I edited my post, I'm a bitch for doing that post posting (it's the dyslexia) :D

 

Yeah but I'd rather stab needles into my own eyeballs.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

I edited my post, I'm a bitch for doing that post posting (it's the dyslexia) :D

 

Yeah but I'd rather stab needles into my own eyeballs.

totally agree, in my web services module i have to create the client and the server, not bad i don't know how to do that but it's all in visual basic. batch is good for 2 things. 1. backing up my files from my USB to my PC and auto mounting my NAS when windows starts.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Sooo, it seems like I'll need to write it by myself :D

Eh  <_<  :D

I know, it is easy, but It feels like a waste of time...

I'll make a game( sth like battleship or "DOS piano" based on beeps :D), because I can't imagine a useful .bat program with 7 pages of code...

 

Thank you all for replying!! ^^

Link to post
Share on other sites

Sooo, it seems like I'll need to write it by myself :D

Eh  <_<  :D

I know, it is easy, but It feels like a waste of time...

I'll make a game( sth like battleship or "DOS piano" based on beeps :D), because I can't imagine a useful .bat program with 7 pages of code...

 

Thank you all for replying!! ^^

make a dungeon type game, release code here :P

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×