Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

hi, i programed this game, i also did the graphics in photoshop,

the sourse code is not documented, sorry i'll fix that later.

i made it in order to learn the basic of arrays.

Would you please give me some feedback.

in the zip file i included the photoshop file and source code also.

tks

P.S. It's just a 2 players game, i might add a computer player later on.

tks for all comments.

winter tic tac toe game

Edited by juanmiguel
  • Administrators
Posted

Not bad at all. You could simplyfy the resetGame routine though

 

   Sub resetGame()
	userTurn = 0

	Dim i As Integer
	For i = 0 To 8
		clicked(i) = False
		clickedx(i) = False
		clickedO(i) = False
	Next

	Dim pb As Control
	For Each pb In Me.Controls
		If TypeOf pb Is PictureBox Then
			clearimage(pb)
		End If
	Next

	Me.lblPlayerInTurn.Text = 1
   End Sub

 

also could you remove the binaries (executables) from the archive - if you don't one of the admins will.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

tks.

 

Hi tks for taking the time of replying, and also thank you for pointing to the improvements that i can make to the code.

I removed the .exe files already, that made the file half of the size that it was.

Any other comments are welcome.

tks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...