Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / begginer level challenges

Author
Message
Jojajojango
15
Years of Service
User Offline
Joined: 9th Jan 2011
Location:
Posted: 10th Jan 2011 21:36
just wondering if anyone has any begginer level ideas?
i been working with mostly text commands and a little bit about
variables
anyone have any challenges?
or tips?

XXjangoXX
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Jan 2011 21:56
I remember one of the challenges I gave myself was moving a circle with the arrow keys.

Cheers!
Sven B

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Jan 2011 23:33
And when the circle reaches the edge of the screen, have it come out the other side.

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
Jojajojango
15
Years of Service
User Offline
Joined: 9th Jan 2011
Location:
Posted: 10th Jan 2011 23:55
i have not got that far yet. im working with IF,ELSE,AND,OR,ENDIF commands.
do i need to get to a certain point before i can get into these challenges?
im using dbpro vol 1

XXjangoXX
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 11th Jan 2011 14:35
Try a simple text based choice making adventure,
u know, something like,

your standing at the mouth of a scary looking cave.
what do you do...
Press key:
1: walk bravely in
2: yell "is there anybody in there?"
3: send your foolish friend in first."

you can begin using if statements to navigate the choices.

Then you can move onto select case statements to simplify choice.

you can implement input and output of data of various types - eg whats your name, age, "choose your own victory catch phrase" etc.

randomly generate events like monsters and treasure,
create variables to store stuff that matters to the character

use maths in your statements - make some basic health, attack defend, stats and create a very basic combat system for the monster in the cave
eg. health = health - monsterattack

show pictures that correspond to choices. so the txt based adventure has some illustrations

and of course you will have to place this inside a loop

the first learning project I made in DBpro was similar and began with, "you are fighting a scary monster... what do you do?"

hopefully that is not too basic or challenging for an introductory program.

Sometimes I like to use words out of contents
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Jan 2011 19:46
Quote: "Try a simple text based choice making adventure,
u know, something like,"


That can be more advanced than you think, as we tackled that in the dbp challenge thread a few months back.


Try the classic mastermind game. Have the user try to guess a number between a certain range.

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein

Login to post a reply

Server time is: 2026-07-21 15:13:41
Your offset time is: 2026-07-21 15:13:41