How Bout a Contest!

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

How Bout a Contest!

Post by JS Lemming »

I'm getting kinda bored lately, so why don't we have a contest of some sort. Like an AI contest. We could start with something simple like pong. One of us creates a pong engine and then everyone creates their own AI (BY THEIRSELVES!) and run it like 100 times (no visuals for high speed) and see who the overall victor is.

What do you guys think?
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Don Pwnious
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 833
Joined: Tue Jun 15, 2004 5:32 pm
Location: on the streets wit my j23
Contact:

Post by Don Pwnious »

Sorry I am out. I am too busy with other things and how long will you think that would take just building the entire thing without ai. Besides i am not fully comprehending the sdl book. Thats a great idea though!!! :D
1/8th time- 14secs
1/8th speed - 110mph
User avatar
vmrob
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 97
Joined: Fri Sep 03, 2004 5:13 pm

Post by vmrob »

god i need to learn some sdl

anyone want to recomend a book on the topic?
User avatar
Don Pwnious
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 833
Joined: Tue Jun 15, 2004 5:32 pm
Location: on the streets wit my j23
Contact:

Post by Don Pwnious »

Focus on SDL. that is what i have and thats what GV recommended to me.
1/8th time- 14secs
1/8th speed - 110mph
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

I changed my mind though. When I first started on that book, I had SO much trouble with it. Don't get it unless you know all of your class/struct object oriented garbage. You'd better know what this means:

Code: Select all

blood->x
If you want to learn SDL, what does that mean?
User avatar
Don Pwnious
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 833
Joined: Tue Jun 15, 2004 5:32 pm
Location: on the streets wit my j23
Contact:

Post by Don Pwnious »

Shoot!! Too late i already bought it.

Yeh i have to agree how is F800 = 1111 1000 0000 0000 b??

also located in pg.43
Last edited by Don Pwnious on Sun Nov 07, 2004 5:08 pm, edited 1 time in total.
1/8th time- 14secs
1/8th speed - 110mph
Tvspelsfreak
Chaos Rift Junior
Chaos Rift Junior
Posts: 272
Joined: Wed Sep 29, 2004 5:53 pm
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: C/C++
Location: Umeå, Sweden
Contact:

Post by Tvspelsfreak »

The Phantom wrote:Yeh i have to agree how is F800 = 1111 1000 0000 0000 b??
1111 = 1*2^3+1*2^2+1*2^1+1*2^0 = 8+4+2+1 = 15 = F (hex)
1000 = 1*2^3+0*2^2+0*2^1+0*2^0 = 8+0+0+0 = 8 = 8 (hex)
0000 = 0*2^3+0*2^2+0*2^1+0*2^0 = 0+0+0+0 = 0 = 0 (hex)
0000 = 0*2^3+0*2^2+0*2^1+0*2^0 = 0+0+0+0 = 0 = 0 (hex)
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Wow, Tvspels, that's exactly what we're working on in Computer Science Club.

I can't believe you know that. You'd be like t3h ultimate Computer Science Club member. My C teacher would worship you!

:bow: :worship:
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

You wouldn't need to know SDL at all to be in the contest. All you need to know is basic C++ syntax to make AI. Does anyone want to be in the contest? I'll make the main engine if anyone wants to.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
Tvspelsfreak
Chaos Rift Junior
Chaos Rift Junior
Posts: 272
Joined: Wed Sep 29, 2004 5:53 pm
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: C/C++
Location: Umeå, Sweden
Contact:

Post by Tvspelsfreak »

You'd have to make the ball faster than the paddle or else one could just do

Code: Select all

paddle.y = ball.y;
:lol:
User avatar
vmrob
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 97
Joined: Fri Sep 03, 2004 5:13 pm

Post by vmrob »

that is what i was thinking just have the ai have the middle of the paddle always at the center of the ball.

and your question
blood->x

Code: Select all

(*blood).x
i don't know the offical terminology but x would be a variable in the instance blood.

(right??)

and like gyrovorbis said we are learning that in computer science team. hex to binary yeah.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Wilson_industries, your -> explanation is right, BUT

HOLY SHIT
Wilson_industries wrote: that is what i was thinking just have the ai have the middle of the paddle always at the center of the ball.
Dude, if you think that is GOOD, then you're going to make a terribly sub-standard game (no offense). Tvspelsfreak was only bringing that up as an example of what NEVER to do.

That isn't AI, that's just some cheap monstrosity.
Last edited by Falco Girgis on Mon Nov 08, 2004 4:25 pm, edited 1 time in total.
Guest

Post by Guest »

I couldn't do anything, because I just know blitz. x.x

When you make the AI, will you be able to tell what the velocity of the ball is, the boundaries of the ring, ect? That would be REALLY, helpful when predicting what the ball will do next.
User avatar
vmrob
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 97
Joined: Fri Sep 03, 2004 5:13 pm

Post by vmrob »

yeah. it would be pretty sick and worthless having an unbeatable ai in pong.

i guess you could have the ball travel faster than the paddle like tvspelsfreak said and have a slight lag time between the computer responses.

a real challenge would be to come up with an ai in tic tac toe without programming every possible winning scenario into it.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Post by MarauderIIC »

Chess.
For hex conversions, F is 1111 and 0 is 0000, etc... Each hex is four bits, and you just string them together.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply