jackandjones120
New member
- Joined
- Apr 14, 2012
- Messages
- 2
- Programming Experience
- Beginner
[TABLE="width: 100%"]
[TR]
[TD="class: smalltxt"]Basically i need to create a card matching game which two players who take turn to play.
Each time they match a pair this adds 1 point to their score.
The cards start off showing a red picture card from file C:\Users\Programming\Pairs_Ass2\Cards\Red.png
In this folder there are 52 cards and a red and blue one.
i need to create a 2 dimensional array which randomises the cards from folder into picture boxes.
the code which i have so far is:
at the line: MessageBox.Show("Well done") my code should put create a 2 dimensional array which randomises the cards from folder into picture boxes as i explained.
Please help, i am really stuck!
if you need any more information please ask
Thanks[/TD]
[/TR]
[/TABLE]
[TR]
[TD="class: smalltxt"]Basically i need to create a card matching game which two players who take turn to play.
Each time they match a pair this adds 1 point to their score.
The cards start off showing a red picture card from file C:\Users\Programming\Pairs_Ass2\Cards\Red.png
In this folder there are 52 cards and a red and blue one.
i need to create a 2 dimensional array which randomises the cards from folder into picture boxes.
the code which i have so far is:
VB.NET:
Public Class Frm_Pairs
Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
Frm_About.Show()
End Sub
Private Sub NewGameToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewGameToolStripMenuItem.Click
Dim Player1 As String
Dim Player2 As String
If Txt_Player1Name.Text = "" And Txt_Player2Name.Text = "" Then
Player1 = InputBox("What is your name Player 1?")
Txt_Player1Name.Text = Player1
Player2 = InputBox("What is your name Player 2?")
Txt_Player2Name.Text = Player2
ElseIf Txt_Player1Name.Text = "" Then
Player1 = InputBox("What is your name Player 1?")
Txt_Player1Name.Text = Player1
ElseIf Txt_Player2Name.Text = "" Then
Player2 = InputBox("What is your name Player 2?")
Txt_Player2Name.Text = Player2
Else
MessageBox.Show("Well done")
End If
End Sub
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
End
End Sub
End Class
at the line: MessageBox.Show("Well done") my code should put create a 2 dimensional array which randomises the cards from folder into picture boxes as i explained.
Please help, i am really stuck!
if you need any more information please ask
Thanks[/TD]
[/TR]
[/TABLE]