11-22-2009 03:18 AM
Hi i am a student in the american university of beirut and I need help in designing a "3 by 3 tic tac toe game" using labview and speedy board please help
thank you
11-22-2009 06:40 AM
Do you need the game as a single player or multi player?
You just need an array/cluster and an event structure in a while loop. Single player might be challenging one, but multi player would be an easy task!
11-22-2009 09:10 AM
Is it the time of year, or are you in the same school as another poster who also was busy with a tic tac toe game 🙂
Anyway, check here and let us know if you need more... ...
11-22-2009 10:21 AM
For some code ideas, check out this thread. A perfect 4x4 player in plain LabVIEW can be found here.
A perfect 3x3 payer would be orders of magnitude simpler. 😄
11-22-2009 11:19 AM
Vsh wrote:Do you need the game as a single player or multi player?
You just need an array/cluster and an event structure in a while loop. Single player might be challenging one, but multi player would be an easy task!
it can be both singular and multiplayer
11-22-2009 12:20 PM
Hmmm, lets have some fun and add a chicken (reaction) and a high voltage DA (action), sorry PETA. At least it would be a change of pace. I wish students would concentrate on their individual issues or coding problems, we have all been there, and not for us to solve their entire project.
Better yet, the Profs should put up postings of these assignments, and this way their is no guesswork... Oh wait, students are not subtle.. Like the Profs never thought of looking here.
But to help those students who are looking, there are several complete solutions to tic tac toe in labview online. One word for you before you run to google, plagiarizer. So make sure that you credit this forum, commenter and the original coder before your turn in your assignment. MLA or AMA formats are acceptable in the VI description, front panel and block diagram in the center of view, unless otherwise specified by your professor.
-p
11-22-2009 04:49 PM
Without giving too much away....
Behind the scenes
*a 3x3 board means you need some way of storing up to 9 "square" values.
*a square can either be filled with an X, a O, or be empty, so three possible values for each square, so you need to be able to determine which of the three is correct at the start of each turn.
*You need some way of determining when a game has been won, that is, three similar symbols in a row either horizontally, vertically, or diagonally.
*If you want to play against the computer then you need some way of allowing it to actually work out where to put their symbol. Have a look at game trees. Not sure if there's a better way though.
GUI
*You'll need some way to place the symbols on the game board
*You'll need some way to toggle between single and multiplayer modes
*You'll need to update the game board after each symbol has been placed.
*Other GUI stuff as required
11-22-2009 10:00 PM
Hornless.Rhino wrote:Without giving too much away....
too late
11-22-2009 10:43 PM
smercurio_fc wrote:
Hornless.Rhino wrote:Without giving too much away....
too late
Ah well....
11-23-2009 01:44 AM
How can i build a tic tac toe game in labview
What im interested in is the following
1) A 3x3 multiplayer game
2) A boolean to move left in the tictactoe grid and another to move down
3) A boolean array to display the grid an another string array to show the X and O's
4) A boolean to confirm player's choice
5) A way to choose whether player 1 or player 2 begins
6) A way to show which player wins or loses, or if it is a draw
thank you very much
I will give free "Kudos "for every one