LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we make a very simple 3 by 3 tic tac toe game using Labview and DSP?

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

Balls
0 Kudos
Message 1 of 26
(6,700 Views)

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! 

0 Kudos
Message 2 of 26
(6,688 Views)

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... ...

Message 3 of 26
(6,678 Views)

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. 😄

Message 4 of 26
(6,665 Views)

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

Balls
0 Kudos
Message 5 of 26
(6,657 Views)

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.  :robottongue:

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


Paul
0 Kudos
Message 6 of 26
(6,643 Views)

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

0 Kudos
Message 7 of 26
(6,620 Views)

Hornless.Rhino wrote:

Without giving too much away....


too late

0 Kudos
Message 8 of 26
(6,597 Views)

smercurio_fc wrote:

Hornless.Rhino wrote:

Without giving too much away....


too late


Ah well....

0 Kudos
Message 9 of 26
(6,590 Views)

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

 

Balls
0 Kudos
Message 10 of 26
(6,569 Views)