The Daily Click ::. Forums ::. Klik Coding Help ::. Tic tac toe
 

Post Reply  Post Oekaki 
 

Posted By Message

blaster182



Registered
  02/04/2006
Points
  32
4th April, 2006 at 19:03:36 -

Hi there... I was planing to make a tic tac toe game and I realized that I don't have any idea of how to do it... can someone please help me here?

Image Edited by the Author.

 
Every Rule Have An Exception... including this one...

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
4th April, 2006 at 20:30:49 -

Unless you wanted to actually make AI for your tic tac toe game, I dont see why anyone would want a computer tic tac toe game, it's a game that that takes a whole 10 seconds to complete on paper, and this includes drawing the 4 lines it takes to actually play on.

 
http://www.facebook.com/truediamondgame

blaster182



Registered
  02/04/2006
Points
  32
4th April, 2006 at 20:36:25 -

actually... I forgot to mention that is a 18x18 tic tac toe...

 
Every Rule Have An Exception... including this one...

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
4th April, 2006 at 20:39:45 -

You need nine squares (objects) that can display a nought, a cross, or empty. The strategies for the game aren't complex and should be easy enough in MMF, although perhaps a little time-consuming. To check if a game has been won, you need to check for certain sets of three objects being in the same state (alterable values could be used for this). There are a number of ways to do it, though.

 
http://www.davidn.co.nr - Games, music, living in America

blaster182



Registered
  02/04/2006
Points
  32
4th April, 2006 at 20:45:47 -

I have used easygrid extension... I've made the grid, and the squares can be marked with no problem... but I still can't check points(in the case)... You need to mark 5 in a row or column or diagonals to win a point... the game only is over when theres no more possibility to win or when the squares are all checked(quite impossible)... I think I need to make a matrix, but I have no idea how to do it...

 
Every Rule Have An Exception... including this one...

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
4th April, 2006 at 20:54:43 -

@Phizzy, I was going to say online, but MSN can let you play tic tac toe no differently then you would with a friend and a piece of paper.

 
http://www.facebook.com/truediamondgame

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
4th April, 2006 at 21:46:02 -

But isn't the idea behind MMF meant to be innovation? You could make a tic-tac-toe game with scores and ranks, and then league tables and tournaments and whatever. MSN tic-tac-toe sucks imo - but with MMF there are all kinds of things you could do to make it a good game.

 
This is a signature. Have this one on me.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
4th April, 2006 at 22:03:35 -

I played 4-dimensional naughts-and-crosses today. Bit of a brainfuck at first, especially if you don't read the instructions.

I've done an implementation in javascript with AI. It's pretty simple since you can just hard-code the best move for any particular state of play (which there aren't all that many of if you exclude all the rotations).

 
http://www.klikscene.com

blaster182



Registered
  02/04/2006
Points
  32
5th April, 2006 at 18:44:27 -

I have some ideas to inovate the game... but this is not the problem... If someone have an engine, tutorial or something, please send it to me... cuz I don't know how to program it... I can implement some nice things later, when the game is funcional...

 
Every Rule Have An Exception... including this one...

blaster182



Registered
  02/04/2006
Points
  32
5th April, 2006 at 19:01:21 -

I'll explain the game... it's an 18 by 18 squares tic tac toe(naughts-and-crosses)game... the objective is to, at the end of the game, score more points than your oponent... you score a point marking 5 crosses or circles in sequence... the game is over when nobody have possibility of wining... this game is confusing, not like the original TTT, in which I can't find any fun... that's all I can say about...

 
Every Rule Have An Exception... including this one...

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
5th April, 2006 at 20:39:02 -

If you have MMF, get the Advance Game Board object. I think its in one of the bonus packs.
If you then go to the extensions folder > demos > advanced game board - you'll find a CCA file which has examples of using the object. In there you'll find a tic-tac-toe example. Its a 3x3 example, but it shouldnt be too hard to make into another grid size.

 
This is a signature. Have this one on me.

blaster182



Registered
  02/04/2006
Points
  32
7th April, 2006 at 18:49:29 -

Thx for the help Flava... but I don't have the extension here... nor this bonus pack... If someone send the extension with the example to my e-mail, I'll be grateful... I'm getting nervous, cuz I just wanna make a simple game... thx anyway...

 
Every Rule Have An Exception... including this one...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
7th April, 2006 at 19:11:46 -

www.clickteam.info/extensions - Bonus packs are there too.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click