i want to make tic tac toe game using pic16f84a can anybody help me
i want to make tic tac toe game using pic16f84a can anybody help me
Last edited by vinoth kumar; - 20th April 2007 at 15:33. Reason: spelling mistake
Hi vinoth kumar,
Welcome to the forum.
I would also add:
How much experience do you have with tic tac toe?
-Adam-
Ohm it's not just a good idea... it's the LAW !
thank u all for ur response
i am working in picbasic pro for past 3 months
and i can make LEDsto blink
recently i had made a program to control two stepper motors for my
final year project for under graduation
i am using 16f84a and "no parts progmmer (through parallel port)"
Last edited by vinoth kumar; - 20th May 2007 at 13:03.
Alright so the first question to ask yourself if you are ready for the project is, "what kind of screen or visualization method do you want to use?"
That is to say do you intend to use led's, lcd, or a pc interface, or some other thing I haven't thought of.
the next is "how my users play?" IE Buttons, keyboard, serial response.
getting a pic to do all the processing over the serial port before you build anything "real". May actually be the easiest way to start after that.
So figure out how your gonna have the pic store all those x's o's and nothings. You can probably use lookup tables.
Ok now you can store the info, but no matter how many you get in a row doesn't matter.
now make an engine that determines when someone has won.
yay! you have tic tac toe.
then, you can make the ai to make it beat you without having to lose to yourself. ^^
at any time in between these steps, or afterwards you can design the interface. But that most assuredly will not be the hard part.
Thank u gandora , for ur kind response,
Actually i want use 3*3 LED matrix for display (Bicolour LEDs if possible)
and some keys like those in the calculators .
With out interfacing with PC will be better
our game should have two options 1) one player mode (i.e, playing with pic)
2) two player mode
and peizo buzzer to announce the winner.
main aim is to keep things as simple as possible!!!
That's a very good question that Adam has asked. You can't possibly expect to design an expert system unless you're an expert in what you're attempting to "mimic". I strongly suggest that you first proceed to master the game. Have someone play against you with pen & paper and when you can say that you can either win or draw every time, then you know it's time to start the project.
Best of luck with it!
Bookmarks