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?


mahdyalmoussawi_2 wrote:

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

 


2) Moving left and down from where? What about moving up and right? 

 

3a) How will you link the string array to the grid? 

3b) What do you mean by "a boolean array to display the grid"?

 

 

0 Kudos
Message 11 of 26
(2,506 Views)

Hi,

 

3) What about a picture ring array to display all the stuff (the grid, "X" and "O")?

 

5) Shouldn't player1 always start the game? Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 26
(2,501 Views)

mahdyalmoussawi_2 wrote:

What im interested in is the following


If you really have interest in this, you should simply start and try to do it. Do you somehow expect us to do the work for you?

 

Is there anything in particular that is holding you back?

What have you done so far?

Where do you have difficulties?

If your code does not work as you expect, attach it here so we can tell you what you did wrong.

How much experience do you have with LabVIEW?

 

 

Message 13 of 26
(2,500 Views)

i have the limited trial student version of the labview 8.0 and I have no arrays on the function palette nor in the block diagram so which version should I download and from where ?

More over I have minimum experience in Labview

 

So what advice should you give me?

thank very much  

Balls
0 Kudos
Message 14 of 26
(2,474 Views)

hi

 

yesthis is a good idea to display all stuff

moreover player 1 always starts the game and player 1 can play in both multiplayer(against player 2) and single player(against a computer) tic tac toe

 

 

thank you very much(^-^)

Balls
0 Kudos
Message 15 of 26
(2,472 Views)

mahdyalmoussawi_2 wrote:

i have the limited trial student version of the labview 8.0 and I have no arrays on the function palette nor in the block diagram so which version should I download and from where ?

More over I have minimum experience in Labview

 


All versions of 8.0 have array functions. You can find them on the Functions palette under Programming

 


mahdyalmoussawi_2 wrote:

 

So what advice should you give me?

thank very much  


Work through the Labview tutorials:

 


LabVIEW Introduction Course - Three Hours
http://zone.ni.com/devzone/cda/tut/p/id/5243
 
 
LabVIEW Introduction Course - Six Hours
http://zone.ni.com/devzone/cda/tut/p/id/5241

 

 

then make a start to your program & come back here for further help as neccesary

 

 

0 Kudos
Message 16 of 26
(2,456 Views)

Objectives

In this project, a design team consisting of four students will design and implement an XO game. Project Description

The goal of the project is to design an XO game using the Speedy 33 DSP controller, the PC and any

additional hardware needed. The students will build a console around the Speedy 33 with required

buttons for two players to play XO. The computer screen will be used to show the XO grid during the

game.

The XO game includes minimum the following inputs:

1. Up/Down Button for each player (2 Digital Inputs: one for each player)

2. Left/Right Button for each player (2 Digital Inputs: one for each player)

3. Enter Button for each player (2 Digital Inputs: one for each player)

4. Temperature Threshold Input to control the color scheme of the game (1 Digital Input)

5. Audio Input to start the game (1 Analog Input)

6. An input to decide who will start the game

The XO game includes minimum the following outputs:

1.” Turn” Light to indicate to the player his turn (1 Digital Output)

2. Water Splash Outputs (2 Digital Outputs)

3. Audio Output to state the winner (1 Analog Output)

Brief description of the inputs

The Up/Down and Left/Right button of each player will control to location of the active cell on the 3x3grid that form the XO game. Thus the player will be able to move to the required position on the grid using these buttons and then by pressing the enter button he will confirm the location to place an X or an O. A temperature sensor will be installed and according to the temperature level, the background color of the game should change (only two levels will be used since the temperature is read as a digital input). The game should start by a special audio input by the players, for example a clap of the hands or

special generated frequency. The last input is to be used to decide which player starts the game (It is up

to the designer to decide how this function is implemented).

Brief description of the outputs:

The first output will be the “Turn” light that will indicate to the player that it is his turn to play. The

consol shall incorporate two water splashing mechanism, one directed to each player, that will be

activated when one player loses a match. Timing can also be used to decide who won if no one succeed

to draw a line on the grid. The console shall also incorporate a speaker to announce the name of the

winner. What is described is the minimum requirement, and it is up to the group members to use their

creativity and enhance the game by using the additional I/Os.

Balls
0 Kudos
Message 17 of 26
(2,426 Views)

Well, you've received a lot of inputs. How about getting the four students together, reading what's been provided, thinking, and actually writing something?

 

We will not do your work for you. This is not a homework writing service. 

Message 18 of 26
(2,415 Views)

Well I am not asking for some homework service but I just need a small help

 

 

How can we change the color and the grafics of the front panel???????????????

 

Thank you

Balls
0 Kudos
Message 19 of 26
(2,381 Views)

You most certainly do have arrays on the controls and functions palettes. Every version, including the student version has these. Click the 'thumbtack' and click on the 'View' button if you want to change the palettes that are always visible.

 

To color the front panel, you use the paintbrush. On the front panel, select View>Tools Palette. No idea what graphics you want to modify but I would recomend you concentrate on the actual program intead of what you think might be 'pretty'.

0 Kudos
Message 20 of 26
(2,364 Views)