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 / - DBPro Coding Challenges -

Author
Message
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jun 2006 16:48 Edited at: 17th Jun 2006 16:50
@Joe Cooning

I'm having problems using your parser.

If I type in
cos(60)*2 or sin(60)*2, I always get 1.73...
And I'm pretty sure that cos(60) = 0.5
(so the answers should be 1.000 for the cos, sin is correct)

I do like your graph... Very nice results from x^2 + 3x - 2, sin(60x)*5...

@Daemon

Your program gave me the correct answer of cos(60) * 2. Though it might be handy to give me a rounded value...
It gave me 0.999999940395.
(I KNOW it's DBP's fault, but maybe you can do something about this)

I do have to say that it might be a little inconvenient to retype the minimum X, maximum X, minimum Y, maximum Y, and a step value every time you want to input an equation though.

@qwe

Maybe the first point I should say (is very easy to fix), is that it might be better to refresh the screen when you reached the end of the screen.
Second, Why does your program give
21*(2+2) if I typed 2(2+2)

Another point would be that the graph is - very - slow...

Don't give it up

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 17th Jun 2006 16:51
Just an idea for the next challenge Make it a 1 month challenge maybe but make it a no media racing game Just an idea i got the idea because leman 24 is on atm

Stunt man 2 http://forum.thegamecreators.com/?m=forum_view&t=79827&b=8&p=0
WHITEKNUCKLE IS BACK! Check the wip boards for more info
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 17th Jun 2006 21:29 Edited at: 17th Jun 2006 21:43
Well, after a day or two of converting, adding, etc. I think my program is again ready to be released to you. However, other than the drab interface (which I should be changing soon), not much is the same about this one.

Segan's Calculator

Features:

-All the normal arithmatic functions (+, -, *, /, ^, sqrt)
-Additional built-in functions
sin, cos, tan, arcsin, arccos, arctan
sqrt, abs, roundup(ceil), rounddown(floor), wrap, factorial
-You can use variables (all capital letters are assumed to be variables).
assign variables using "store" function.
-Enter will repeat last equation.
-Use "ans" when you want to use the last answer.

-Error catching: Catches most typo style errors
-Assumes "*" correctly
-Differenciates between when "-" is used as substraction or as a negative sign
-Automatically closes all pairs of brackets not already closed.

-POWERFUL CONSTANT SYSTEM
It works exactly like #constant in DBPro. Search for it in the code for more info.
Constants supported: pi, e, m_earth, g
Shortcuts supported: asin for arcsin, floor for rounddown, wrapvalue for wrap etc.
AND IT'S EASY AS 3.14 TO ADD MORE!!!!!


NOT ADDED YET:
-Better interface
-Plotter

Check it out!

Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 17th Jun 2006 21:38
@Sven B
That was interesting (with the 2c(60)). It took me a while, but I think I got it fixed (I believe it was a problem with my toString function that reduces the number of digits after the decimal place to only 6 at max). Try this.


qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 17th Jun 2006 23:31 Edited at: 18th Jun 2006 05:18
Quote: "Maybe the first point I should say (is very easy to fix), is that it might be better to refresh the screen when you reached the end of the screen."


user now can enter 'clear'

Quote: "Another point would be that the graph is - very - slow"


fixed with sync command

Quote: "Second, Why does your program give
21*(2+2) if I typed 2(2+2)"


i'm launching an investigation on this one :



edit: fixed
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 18th Jun 2006 13:38
@Segan

Very nice. I didn't have the time to test all the functions you programmed, but the ones I tested (roundup, rounddown, fact, cos, sin, atan, pi and store) were working perfectly.
Also simple equations with *, /, -, +, ( and ) worked nicely.

Maybe try the plotter now?

@Joe Cooning

The 2c60 seems to be solved.
Now there's another problem:
If I type 's60' it gives me the correct answer: 0.83 etc.
If I type '2s60' it gives me 2.32051 which is not possible because s60 is always <= 1...

@qwe

Very nice, the program now handled all my tests well.
Maybe make a more intuitive interface instead of typing all the plotter window stats every time you want to input an equation...
Else than that, a very nice progress.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 18th Jun 2006 18:13 Edited at: 18th Jun 2006 18:25
Quote: "I do have to say that it might be a little inconvenient to retype the minimum X, maximum X, minimum Y, maximum Y, and a step value every time you want to input an equation though."


Just hitting enter until you see the graph usually works. It has default values that it goes with if you leave an input blank.

All I have done is put sync on for the slight added speed and added the option of connected or dot for the plotter.



@Segan - Type in "e" as your equation, see the problem, and fix it (I don't know why an extra space does that.) Other than that, good job so far. I saw log mentioned in one of you remarks. Do you know an easy way logs would be possible?

Insanity is just a state of mind
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 18th Jun 2006 20:35 Edited at: 18th Jun 2006 20:36


Sorry, couldn't resist of coding a log function...

nr# is the number it should take the log from
acc is the number of decimals accuracy

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 18th Jun 2006 21:03 Edited at: 18th Jun 2006 21:36
@Daemon

Nice catch for the error! Spaces should now work virtually anywhere in the equation (they are simply ignored), though I havn't checked ALL situations yet.

Updated Code:


Oh, and seeing as you have caught so many errors in my programs, I decided to actually delve into yours to see what I could find:

Solver
-(5) –> Illegal brackets error
r(-1) –> May be nice to have a proper error [I need to do this as well]
2.2! –> Returns 2. [my function not error checked yet either.]

Plotter
-(-x) returns nothing

Other than that, pretty good! I really had to look hard to find problems...


@Sven

Nice function! I might just have to use it...


Say... Has anyone tried:

-The constants system? Note that "arcsin" and "asin" work exactly the same, and that isn't because I hardcoded both in. If you'd prefer, you could even add "as" yourself!

-The variables? Try typing "5storeA"(or 5sA if you prefer), then "6storeB", and then "AB" will give an answer of 30.

-Answer? ans or a will insert the previous answer into the formula. Try a+2 enter enter enter..... and it will give a sequence!
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 18th Jun 2006 22:46 Edited at: 18th Jun 2006 23:16
Quote: "-(5) –> Illegal brackets error"

Haven't solved this. It is going to be complicated to do.

It can do log! (Sven's function)

An error in the plotter just results in the value of a 0.



Insanity is just a state of mind
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 18th Jun 2006 22:53 Edited at: 18th Jun 2006 22:53
@segan, at line 315 ( If e = "roundup" Then Nextnum# = ceil(nextnum#) )
"subscript must be integer or dword when referencing an array at line 315"

happens in both blueIDE and normal dbp

Quote: "Maybe make a more intuitive interface instead of typing all the plotter window stats every time you want to input an equation..."


yeah, as daemon said, you can press enter for defaults. then, once the graph is shown, backspace runs the grapher again with all the same window options (while \ runs it again with new options and RShift goes back to coder)
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 19th Jun 2006 03:45
Here's a calculator I've been working on. Current features:
(, ), [, ], ^, ** (same as ^), *, /, +, -, ! (factorials), implicit multiplication (not in all cases), negative numbers, pi, and these functions:
hsin
hcos
htan
asin
acos
atan
sin
cos
tan
csc
sec
cot
sqrt
abs
int
exp
rnd
timer
floor
ceil
wrapvalue

Beside that, you can assign values to variables in the following manner:

"Let x=2"
"Let y=x*2"
"Let z=x/y"
It checks for attempts to assign numbers to numbers (It'll call you crazy if you try "Let 1=2"), divide by zero, and square root of a negative number.

You can also check equalities and such like this:
"1+1=2"
will return true
"1+3>2"
will return true
"sin(30)=0.5"
will return true
"4*4>=100*2"
will return false

Paretheses are not required for functions:
2*sin(30), 2sin30, 2sin(30), and 2(sin30) all return 1.

Things like sin30cos30, do not evaluate correctly.

Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 19th Jun 2006 05:22
Ok... I pretty sure I got the bugs worked out now
You can use sin,cos,abs,tan,pi, and e (s,c,a,t,p, and e) and the usual commands of ^*/+-(). It also recognizes things like 2(3) as 6 and such. See what you can throw at it.

I'll probably document the code better later so that you can understand it better, but only once I'm sure there are no major problems.


Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 19th Jun 2006 17:46 Edited at: 19th Jun 2006 23:19
Quote: ""-(5) –> Illegal brackets error""

I fixed this now!

I also found another error in my previous program. It would not recognize negative x in the plotter. I have also fixed this.

That's all this update does. Fixes stuff.

Edit: Now it says "Overflow!" if you have a number go beyond DBP's limit.

Edit2: Edited for Sven's suggestion (further down)



Insanity is just a state of mind
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 19th Jun 2006 19:17
@qwe

That's odd... Works fine with me. What version of DbPro are you using?
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th Jun 2006 20:52 Edited at: 19th Jun 2006 20:53
Daemon, I suggest you use '6' as the max acc number in my log function. Else, DBP might come in an endless loop...

(Try 200)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 19th Jun 2006 22:22
@Segan

I didn't realize v6 came out. must have happened while i was away (i just got back into dbp again with this particular coding challenge)
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Jun 2006 03:14 Edited at: 20th Jun 2006 03:17
Hey guys, havent been here in a while . I realize there isnt much time left in this challenge to create a full fledged program to compete with the other entries so far, so ill go for the educational purpose of doing the dreaded variables! I just started and I thought I would show you what I have so far . By the way, some of you may notice that my "isnt" does not have an apostrophe, and that is because, for some unknow reason, it will not work lol. Anyways, here is the code:



[EDIT]
Note that you must use "x" as the variable and so far you may only have 1 variable . Remember, JUST STARTED.

Thanks,
Kimosabi

www.mightandmagic.com

lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 20th Jun 2006 09:36
Worked on my program some more, several new features have been added.


New features included:
Sven B's log function adapted so you can now use ln (natural log) as well as log.
Expressions like (-2)^3 now correctly evaluate to -8.
Use up and down to go through previous entries.
The constant e was added.
Expressions are now assigned to variables, not values. Let me make a little example to explain:
first set two variables, one in terms of the other:
:let x=3 //makes variable x and sets it to "3"
:let y=x+2 //makes variable y and sets it to "x+2"
evaluate the dependent variable:
:y //evaluates y, which is expanded to x+2, which is expanded to 3+2, and then evaluated to 5.
change the independent variable:
:let x=5 //sets variable x to "5"
dependent variable changes with it:
:y //evaluates y, which is expanded to x+2, which is expanded to 5+2, and then evaluated to 7.
So now if you define one variable in terms of another, the variable will basically change along with the variable it is defined on.

Functions! Make your own functions with ease:
":define my_function(x)=sqrt(abs(x))-3"
then you can use it basically like one of the built-in functions:
my_function(4) evaluates to -1, my_function(9)+3 evaluates to 3, etc.
You can also define functions in terms of other functions, just please don't try to make a recursively defined function, that doesn't work.

Graphing...
Plot(expression,parameter)
This will plot the expression and evaluate it as the parameter goes from the configurable variable "left" to the configurable variable "right".
examples:
Plot(5x-x^2,x) will make a nice parabola
Plot(my_function(x)+2,x) will plot the function we defined above, vertically translated up 2.
Note: the parameter does not have to be x - plot(qwerty^3,qwerty) works just as well for a graph of the cubic.

ParametricPlot(expression,expression,parameter)
This will do a parametric plot, the first expression will be the x coordinate and the second will be the y coordinate. The variables start and end can be set to graph the desired interval.
For example, setting start to 0, end to 360, and this call will draw a circle:
let start=0
let end=360
parametricplot(4cosw,4sinw,w)
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 20th Jun 2006 19:24
Tomorrow is THE day.

If you have any updates to show, post it as soon as possible. The winner should be declared around 18-20h tomorrow (GMT +1h)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 20th Jun 2006 20:22
aww man this challenge looks like it would rly appeal to me damn me never checking in here (besides i can barely rmember DB )

New site!
David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 21st Jun 2006 17:51 Edited at: 21st Jun 2006 19:02
Q: Is this some sort of 'calculator' program? If so would you like me to make a bitmap with background and buttons to go with it so this can be converted into a full fledged Util available for the forums?

Perhaps the winner could have a GUI made for his winning entry?

Just a thought, not an actual Hijack.

Cheers!

Edit: Warning Eyecandy Spam, close your eyes if this offends you.

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 21st Jun 2006 19:05
Okay, no updates anymore. From this point, I will use your latest posted code snippet as your final version.

I will be back later with the results.

@David
Nice idea. Maybe ask the winner later

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Jun 2006 19:46
Someone is just showing off that they can draw I'm jealous

[center]
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 21st Jun 2006 19:54
Yep, not enough that he is gonna win the banner compo hands down, he gives us coders free media here in our very own thread!

{grins} Cheers really Dave!
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 21st Jun 2006 20:19 Edited at: 22nd Jun 2006 12:36
Please remember that I didn’t test ALL the math functions (would make me nuts), so that there might be bugs that I overlooked.

Quote: "Lower Logic

A very wide range of possibilities with this one.
The parser:
I found that 33! And 32! Both gave -2147483648 as result.

I noticed that variables can contain more than 1 character, but I also noticed that things like “let he=3”, and then “let hello=5” gave problems. “hello” kept giving me the value 0.

Defining functions was okay, as long as I passed only one parameter (I guess you forgot to mention it).

Beside that, the amount of math functions was very large, and you got me interested with the defined functions.

The plotter:
I found it rather weird that the functions were ‘jumping’ for x=0… And when I tried the parametric plot, and I typed something wrong, I got like 100 times “You are crazy” on my screen (the annoying thing was that I couldn’t quit so I had to wait till it was over)."


Quote: "KimoSabi

The only equation solver around here. Too bad you started a little too late to be able to make a full program…

Not really anything to point out because it doesn’t do very much. Sorry…"


Quote: "Daemon

The parser:
The normal operations went perfectly. Only -5^2 gave me 25 instead of -25.
And also, too bad that you haven’t updated it with the working log.
No other remarks

The plotter:
No problems there.
I don’t really like to input the graph setup every time, but it’s the parser that is the challenge, it doesn’t count anyway."


Quote: "Joe Cooning

The parser:
-5^2 = 25 according to your program(like Daemon). 2c60 gave me 1, (So that is fixed <edit>
Else than that, no other problems found"


The plotter:
I found it a very smooth plotter, probably because it calculated the X of every pixel.
I couldn't find any real bugs.<edit>

Quote: "Qwe

The parser:
There were no error messages. I tried r(-100) and the program crashed. I tried r(`100) and it gave me 1.#IND (which is DBP that generates these answers).<edit>
Else than that, no other problems.

The plotter:
Nice."


Quote: "Segan

-5^2=25. Together with Daemon and Joe. And as you said yourself, no proper error with the square root of negative numbers
No other remarks. A large amount of functions.
I liked it being easy to add your own constants."


Quote: "Phaelax

Only addition and subtraction. And then he was gone…
"


On the second place:


And the first place:


It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
sixblades
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location:
Posted: 21st Jun 2006 21:48
So what's the next challenge going to be? (i hope to god it's something with a little more flair than this one)
Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 21st Jun 2006 22:06
@Sven B: the reason -5^2 gives 25 is because (-5)^2=-5*-5=25 If you want -25, you have to go -(5^2). Also, You didn't mention anything about my plotter that I had. Oh well...

Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 22nd Jun 2006 00:12
The problem is that if you type in -5^2 on any calculator it gives you -25. I forgot about this.

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 22nd Jun 2006 00:38 Edited at: 22nd Jun 2006 00:42
Quote: "There were no error messages. I tried r(-100) and the program crashed. I tried r(`100) and it gave me 1.#IND (which is DBP that generates these answers).
Beside this, when I typed: 6pi, it did 6*3.14159265358979*0. Why the 0?
Else than that, no other problems."

- ` is the negative symbol
- yea, i forgot the sqrt error message. i do have error messages though for division and brackets and other things
- just 'p' is pi (it says that on the front screen when you start up)
- any letters that dont have a function are treated as 0

Quote: "The problem is that if you type in -5^2 on any calculator it gives you -25. I forgot about this."

on calculators, -5^2 is treated as -(5^2)
on any calculator, (-5)^2 returns 25
Segan
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Canada
Posted: 22nd Jun 2006 01:37
Yay, second place! I'm slowly gaining... will win one of these sooner or later...


Congrats lower logic! I look foreward to the next challenge... er... actually I'm getting busy again soon, so I may not be able to enter. Still congrats again!
Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 22nd Jun 2006 02:39 Edited at: 22nd Jun 2006 02:55
@Sven B: I just checked out the 2cos(60) problem. Did you type 2cos(60) or 2c(60). 2c(60) returns 1.0 like it's supposed to, the reason why 2cos(60) returns the sine value is because it sees the s(60) instead of the cos(60). I probably should have noted it in the code, but I mentioned when I posted it that cos, sin, tan, abs, pi and e are done by c,s,t,a,p, and e respectively.

Edit: As for the next comp, maybe a simple paint program?

lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 22nd Jun 2006 04:13
Cool! Thanks.
Yeah my entry sure had a lot of weird quirks.

It'd be possible to add some code that would let you define functions with more than one parameter, but i didn't do that.

I was working on a solver that would have worked with linear equations, but got too many headaches trying to make it combine like terms and such expand expressions with unknowns, but it was able to intelligently move all the "sections" containing no unknowns to the right side, and move all sections that contained unknowns to the left side.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 22nd Jun 2006 12:31 Edited at: 22nd Jun 2006 12:41
Qwe

Quote: "- just 'p' is pi (it says that on the front screen when you start up)"


That is a mistake I could've known. Sorry...

Joe Cooning

The -5^2 is -25, (-5)^2=25. It's just the way it is.

The 2c60 was my mistake (again). It’s hard sometimes to keep track of which program uses cos() and which one uses c(). Maybe I got too used to your help, that I looked over it.

Quote: " Also, You didn't mention anything about my plotter"


Damn... I knew I forgot something, but I couldn’t lay my finger on it... And I even tested your plotter! Just... forgot to mention it

I edited all my faults in the post. But I still think the winner stays...

[note]
May I note that everyone that participated did a great job( Maybe just phaelax didn't due to being away )

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 22nd Jun 2006 19:58 Edited at: 22nd Jun 2006 22:49
David: You may make a GUI for my entry. I'm not good at graphics, but I think if you could make a normal, scientific, and plotter mode, each with appropiate buttons and a simple way to switch between them, it would be the perfect addition to the calculator.

Also, anyone may use and/or improve my calculator in their non-comercial projects. If you do, I'd like to have credit as I spent several hours coding and debugging it.

Edit:
The paint program sounds like a good idea for the next challenge. I also have another idea for a challege, if people want to do it:

The challenge would be to make a program that automatically generates a network of waypoints for a level (an object or group of objects), finds out combinations of waypoints that are walkable, ones that are only jump able, and ones that can only be traversed by crouching/crawling. It would either take vertical jump speed, max fall height, and run speed as parameters, or those would be decided on before the start of the challenge.

Then, have an interactive mode which could include any or all of the following:

An NPC wandering around the map. Key things that would help one's score would be: not walking into walls, traveling across jumps naturally, using the provided animations when appropiate, and smooth human-like, natural-looking walking between waypoints.

An NPC going to random locations on the map. Key things that would help one's score: It would first select a location relatively far away, and show the path it intends to take. It would use the waypoints and a pathfinding algorithm to travel to that position. Of course, the autonomous waypoint generator would play a role in how well it's able to navigate the map.

An NPC that takes cover from a "dangerous" position on the map. This would mean the waypoint system would also need to have gathered visibility data, and the AI would need to know how to find the waypoints the danger point is near, find waypoints that are not visible to that waypoint, and choose to go to one.

Before the challenge, we'd need to decide on or make 3-5 FPS levels. These levels would need to be fairly diverse to really test the programs. Ramps, multiple stories/levels, and elevators would be good to include. Also, we'd need a character with (walking or running) and jumping animations.
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Jun 2006 06:05
i've never used waypoints, sounds like fun! plz pick that lower logic

stargate sg-1 the one show that never gets old
Ruler8163
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: Atlanta, GA
Posted: 23rd Jun 2006 08:37
<blinks>

Inspiron XPS GEN 2 Intel M Pentium 760(2GHz/533MHz FSB) 1GB RAM 256MB NVIDIA GeForce Go 6800 Ultra 60GB Hard Drive
David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 23rd Jun 2006 13:21
Lower Logic, you said.. "David: You may make a GUI for my entry. I'm not good at graphics, but I think if you could make a normal, scientific, and plotter mode, each with appropiate buttons and a simple way to switch between them, it would be the perfect addition to the calculator."

Ahem you might be able to guess I'm an artist. my math skills are basic + - * /.. and only then with a quantum physics machine to back me up. Please list the buttons you need for each area (tab) and if possible how you think they should be arranged. Also let me know how much space you'll need for the numbers/formula to be entered (aka the display area of the calculator)

Cheers!
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 23rd Jun 2006 13:52
Lol, I have idea's for both the Waypoint system AND the paint program...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Matt W
18
Years of Service
User Offline
Joined: 4th Mar 2006
Location:
Posted: 23rd Jun 2006 14:19
Are you offering both options or are you going to pick one?
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Jun 2006 14:45
I vote for the paint program - I think the waypoint thing is too hard for a 2 week, no media challenge. Plus the fact it inherantly requires media in the form of a predfined map....

The onlny way thats feasable is if you provide a 2D array of data statements which create a kind of psuedo maze and the challenge could be to create a NPC which can traverse the maze without getting stuck or excessively repeating itself... Still - I prefer the paint option

How about specifying the paint program into a heightmap editor for use with Advanced Terrain? At least then the challenge has a potential use.

You could have it produce the terrain and at the click of a button have a realtime preview of the terrain you just made... The problem with AT is that it requires a terrain texture I think...

[center]
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 23rd Jun 2006 16:07
I haven't decided on a challenge quite yet, and I'm open for more ideas. I'm probably not going to pick the waypoint one unless people say they want that. Here's an idea, to see if people like it:

A game based on Scorched Earth. It could be anywhere between a completely original game to an exact remake (Like the Asteroids challenge). Would need key gameplay elements such as gravity affecting the path of missiles, and the ability to aim and set the launch speed.

Another idea was to make some sort of platformer, maybe based off the 2d or 3d version of Sonic or Mario.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 23rd Jun 2006 16:07
Quote: "Lol, I have idea's for both the Waypoint system AND the paint program..."


I meant I like both ideas so that it doesn't really matter what he picks...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Jun 2006 16:25
A DDS type paint program.

I'm not getting you down am I, Ho Look! another fancy Door?
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Jun 2006 17:06
Can DBP save DDS files?! If not - a DDS exporter is a challenge in itself!!

A remake could be interesting - is Scortched Earth a tanks type game with turn based projectile firing across a mountain like terrain?

If remakes is a theme - I've always loved a game called Biplane on the Amiga. It involved a side on 2D simple flight model with up to 4 players. You went off one side of the screen and appeared on the other (like Asteroids) and you could fire bullets at each other. I'm working on a media-based clone right now which will be networkable using Banjamins UDP plugin (Tempest).

[center]
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Jun 2006 19:52
hurry up and pick already!!!!!

stargate sg-1 the one show that never gets old
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 23rd Jun 2006 19:52
A remake of the old clasic CHAOS.

Media must be created by DBP, and updates and extensions of the rules etc would be encouraged.

If you don't know it, go look it up. Its one of THE classic games. 8 wizards on-screen in a turn-based strategy game.

Reasons: It will teach us how to do simple timer based animations without media, AI and help with turn-based games (I've recently seen a few people on the forums asking for tutorials on turn-based games.)

What do you think?
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Jun 2006 19:53 Edited at: 23rd Jun 2006 19:53
-

stargate sg-1 the one show that never gets old
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Jun 2006 19:53
100th page

stargate sg-1 the one show that never gets old
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 23rd Jun 2006 22:02 Edited at: 23rd Jun 2006 23:44
All right. While a few people want a remake challenge, they want to remake different games, and that would just be hard to judge. So, since several people want a paint program challenge, here it is:

Paint Program Challenge
Create a paint program. This can be anything from a program that lets you simply paint dots, to the next paint shop pro. The winner will be decided based primarily on these two things:

-The amount of unique features. For example, you could try to include things like save/loading, lines, flood-fill, brush sizes, selecting&moving parts of the image around, etc. Go crazy and try to add all sorts of effects and tools you can think of.

-Easy to use. Ideally your paint program should be fairly easy for people to learn and use.

Edit:
All entries should be submitted before 12:00 noon EST on July 7 (2 weeks)

Login to post a reply

Server time is: 2024-11-25 02:49:19
Your offset time is: 2024-11-25 02:49:19