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 / Well my first game....

Author
Message
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 05:56 Edited at: 14th Jul 2012 20:25
This wasn't much, mostly a learning exercise for me, to gain familiarity with the DBPro language.

This marks my first game for DBPro. I realize it isn't much.

The AI does have weakness, its not perfect, nor should it be. Whats the point of playing Tic Tac Toe against a computer if it has a perfect AI.

Please let me know how it works

Edit: Oops need to include the media files

Edit: Applied U77 RC and recompiled

Edit: Added right click to play new game option at end game

Edit: Game no longer lets you pass your turn by clicking on a square you have already taken

Edit: Game will now take its turn if only low value middle-side spaces are available

Edit: ~I Think~ I have closed off all winnable games where X takes center first

Edit: Ok, I can't win anymore... Computers opening move will now change

Attachments

Login to view attachments
DarkDISCUSSION
12
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 14th Jul 2012 06:03
very nicely done!



GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 06:07
You know, my favorite thing about DBPro right now is how easy it is to pack my game up and ship it.

XNA /shudder
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 14th Jul 2012 06:09
hmm, I have windows 7 home premium and it won't let me run it under any setting. anyone else have this problem?

Sometimes I like to use words out of contents
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 06:20
Keazla,

I wish I could help, but I have precisely zero expereince here. I can offer that I developed it on a 64 bit (should this matter?) version of Windows 7 home premium. There are three files packed into the exe. I compiled it on DBPro version 1.0761. I am 99.99% certain that it is vanilla DBPro without any plug-ins.
Dar13
15
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Jul 2012 06:26
Quote: "I compiled it on DBPro version 1.0761"

That's the issue. It could be that Kezzla has Win7 SP1 which only DBPro V1.077 RC has the fix for.

Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 14th Jul 2012 07:51
ah that could be the one, i do have win7 sp1. but i have the same version of dbpro and my exe's work on mine.

try running the below exe (348kb)

see if it runs. if not its the SP1 error.

its a shame, i was looking forward to playing your game.

Sometimes I like to use words out of contents

Attachments

Login to view attachments
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 08:06
Your exe works on my computer...

Like I said, I changed the file to the new dbpro version, and...

Anyhow, here it is compressed into a installer file... Dunno if will help or not.

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th Jul 2012 17:10
very well done man, just needs to be able to reset the game at the end now

GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 17:40
Done
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th Jul 2012 17:51
ahahahaha, omg... I found a huge major bug in the game...

anybody else spot it?

GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 17:59
Thats not a bug!!!! Thats a feature!!! This version of Tic Tac Toe lets you pass!
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Jul 2012 18:00 Edited at: 14th Jul 2012 18:01
This?



The game refuses to take its turn and lets the player place another cross.

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th Jul 2012 18:20
GG and GregA you can replace an AI piece XD and yes I also noticed the AI glitch

GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 18:27
Thanks for helping me chase down the bugs guys.

Keep em coming if you have em.
Big Dog Game Studios
11
Years of Service
User Offline
Joined: 18th Jun 2012
Location: Port Angeles, WA
Posted: 14th Jul 2012 18:34 Edited at: 14th Jul 2012 19:29
Very nice first attempt! The only suggestion I have is the possibility of beefing up the AI a bit to think some more. When I first played it, I thought the AI was a bit tough, very hard to beat... which is true. By the third round I noticed the AI never acted, just reacted. By the 4th turn, I found the winning combo that allows you to win every time. Just my 2 cents! Hope it helps!

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Jul 2012 18:35 Edited at: 14th Jul 2012 18:44
Quote: "GG and GregA you can replace an AI piece XD"


So you can! I didn't even think of trying that - a bit like erasing your opponent's move while they go to answer the front door bell. But then perhaps that's the way GregA plays the game [sorry GregA, just teasing].

@GregA

Yes, nicely done despite the bugs.

[Edit Haven't spotted any bugs in the latest version. ]
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 18:50
Has anyone found a winnable game where X takes center first?
Big Dog Game Studios
11
Years of Service
User Offline
Joined: 18th Jun 2012
Location: Port Angeles, WA
Posted: 14th Jul 2012 19:26 Edited at: 14th Jul 2012 19:29
Yep.. like my earlier post said, I found the combo for winning everytime and it starts with X in the center

Big Dog Game Studios
11
Years of Service
User Offline
Joined: 18th Jun 2012
Location: Port Angeles, WA
Posted: 14th Jul 2012 19:35
Ok.. I have to go to work, but just in case GregA would like to know what combo I use so he can look and adjust... here it is:

**********SPOILER*********** Do not read if you do not want the mystery taken out of it!



I hope this helps!!!

GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 14th Jul 2012 20:27
OK, can anyone beat it at all anymore? I can't beat it... Code also has an exception for a non-center opening gambit.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Jul 2012 21:22
I found a bug.. what are you supposed to do when it says... "Let's play Thermonuclear War!"

Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 14th Jul 2012 22:20 Edited at: 14th Jul 2012 22:21
Quote: "I found a bug.. what are you supposed to do when it says... "Let's play Thermonuclear War!""

A strange game. The only winning move is not to play. How about a nice game of chess?

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th Jul 2012 22:30
Quote: "A strange game. The only winning move is not to play. How about a nice game of chess?"


hahahaha I see what you did there

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 14th Jul 2012 23:04
* Global Thermonuclear War

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenom™ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th Jul 2012 00:11
How did we get from Noughts and Crosses to Global Thermonuclear War?
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 15th Jul 2012 01:10
Well I think what happened is that this morning the tic tac toe ai was beatable, then throughout the day it grew into a monstrosity that mercilessly destroys all humans without remorse. Well at least gets em in a tie...
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 15th Jul 2012 02:01
Ok, here is the multi-media version with a er... Song and sound effects all by me. Well I did actually compose the song. The Sound Effects are from the Sony 1001 sound effect pack.

I am hosting this one here, in case someone wants the version that doesnt do sound.

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th Jul 2012 02:32
They can just turn the sound off.
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 15th Jul 2012 03:28
hmmmm, why am I the only one who cannot play it? surely others have windows 7 home premium sp1?

Sometimes I like to use words out of contents
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jul 2012 04:28 Edited at: 15th Jul 2012 04:29
Quote: "How did we get from Noughts and Crosses to Global Thermonuclear War?"


The film War Games has a computer that almost starts World War 3, but they stop it by making it play tic tac toe. It says "Lets Play Thermonuclear War"

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 15th Jul 2012 06:22
Quote: "The Sound Effects are from the Sony 1001 sound effect pack."


I got that too...

Quote: "War Games"


I truly felt like I was the only person to watch that movie lol it was ace!

Quote: "hmmmm, why am I the only one who cannot play it? surely others have windows 7 home premium sp1?"

Windows 7 Ultimate x64 SP1

GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 16th Jul 2012 08:17
I wish I could do something to help him play the game. If anyone has any suggestions of some compiler settings or a different patch to dbpro...
mr Handy
16
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 16th Jul 2012 09:37
Nah, I don't want to play this - there is no SSAO or Radiosity Lighting. Back to 2000? No.

p.s.

«It's the Pony, pony me this, pony me that» — Bronies
«Socks are sexy. You should wear them!» — Bronies
«I sell apples and apple accessories» — Applejack
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 16th Jul 2012 12:07
Oh you are in for a treat in my next game. It will have an animation in it!
mr Handy
16
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 16th Jul 2012 12:21 Edited at: 16th Jul 2012 12:22
Please, use my MLP TTT kit for your game - I recently wanted to make TTT game, but... unfinished.

p.s. attached archive, 800x600 optimised

«It's the Pony, pony me this, pony me that» — Bronies
«Socks are sexy. You should wear them!» — Bronies
«I sell apples and apple accessories» — Applejack

Attachments

Login to view attachments
RonsWare
13
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 16th Jul 2012 13:02
I have tried the game, nice !
Works perfect.

I have windows 7 Ultimate sp 1 64 bit.

Cheers Ron.

Programming is learning
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 16th Jul 2012 22:11 Edited at: 16th Jul 2012 22:12
Quote: ""Please, use my MLP TTT kit for your game - I recently wanted to make TTT game, but... unfinished.

p.s. attached archive, 800x600 optimised""


I am done with tic tac toe. I will incorporate your art into my next game though. A connect four style game.

Really what I need though(from an artist more capable than me), is a blender model of two human hands, set opposite two robot hand, all rigged and animated so that I can open and close individual digits for a game of chopstix.
mr Handy
16
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 17th Jul 2012 09:48
Good hands is hard to find. You better take a pictures of your hands, with animation, plus for robot you can just put on black leather gloves. That would be awesome and realistic.

«It's the Pony, pony me this, pony me that» — Bronies
«Socks are sexy. You should wear them!» — Bronies
«I sell apples and apple accessories» — Applejack
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 17th Jul 2012 10:22
I was able to rig and animate the hands the way I wanted them. I wasn't able to make a hands model that I wanted to show other people...
mr Handy
16
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 17th Jul 2012 10:30
Why don't you like photo idea?


«Socks are sexy. You should wear them!» — Bronies
GregA
12
Years of Service
User Offline
Joined: 21st Jun 2011
Location:
Posted: 17th Jul 2012 10:42
Because i'ts a 3d game!

I want to show trippy uncanny valley hands moving around in CGI all creepy like.

Then as the computer kicks your ass at chopstix every single game it does it with robotic hands and a Futurama inspired song called "Destroy all humans" playing in the background.

Login to post a reply

Server time is: 2024-05-04 16:36:36
Your offset time is: 2024-05-04 16:36:36