Raminator's Profile User Rating: ***--

Reputation: -2 Dishonored
Group:
Active Members
Active Posts:
206 (0.66 per day)
Joined:
16-July 12
Profile Views:
2,516
Last Active:
User is offline May 17 2013 02:32 PM
Currently:
Offline

Previous Fields

Country:
BR
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Raminator Begginer programer.Experient noob.

Posts I've Made

  1. In Topic: TextBox.TextChanged on If statement

    Posted 17 May 2013

    View Postmodi123_1, on 17 May 2013 - 08:47 PM, said:

    sure.. make sure it's 'new' though.

    Which one?
    Dim local As New List(Of Integer)
    
    ?
    Also, how would i associate each textbox (each space of teh tic tac toe board) ot an int, and i dont get how would i detect the changes with this.
  2. In Topic: TextBox.TextChanged on If statement

    Posted 17 May 2013

    View Postmodi123_1, on 17 May 2013 - 08:04 PM, said:

    Okay... so store the values in a collection. One for the player and one for the computer. Their index would indicate which turn they were inserted on so you have your time factor.. the collection keeps them in an ordered structure.. bingo-bango.

    I never did anything with collections before, would this be the right way?
    Or this:
    Dim local As List(Of Integer)
    
  3. In Topic: TextBox.TextChanged on If statement

    Posted 17 May 2013

    View Postmodi123_1, on 17 May 2013 - 07:52 PM, said:

    Quote

    Its a tic tac toe game, so inside the sub that will start when the user makes his first move, i need to track what the user's next move was,

    A collection wouldn't suffice? certainly you number your squares 0 - 8 and just add to a list of(int) which square was picked.

    Quote

    in order for the pc to make the correct next move. Something like

    Why would the computer need to know the last move by the opponent? Isn't the main concern of the game is to solve the current board _as is_ and not _what could be_?

    I think didn't express myself quite right, I'll try it again.(Tic Tac Toe Tacticts)
    >User makes first move
    >Computer, based on the user's first move and the tactics make the next move
    >User makes his second move
    >Computer, based on the user's second and first move, and computers first move, makes second move
    This is basically it. So, if you think of the tic tac toe board as your numeric keypad, something like this should happen: user makes move on square 1,computer makes move on square 5,user-4,computer-9,user-2,computer-7,user-8,computer-3.So the computer would win.
  4. In Topic: TextBox.TextChanged on If statement

    Posted 17 May 2013

    View Postandrewsw, on 17 May 2013 - 07:49 PM, said:

    I must comment on your textbox names. _1, _5.. seriously? TextBox1 would be better :dontgetit:/>

    Hahaha, any suggestions? I made those so i would visualize the tic-tac-toe board on the numeric keyboard
  5. In Topic: TextBox.TextChanged on If statement

    Posted 17 May 2013

    View PostAdamSpeight2008, on 17 May 2013 - 07:33 PM, said:

    What's wrong with using the TextChanged Event of the Textbox?

    Its a tic tac toe game, so inside the sub that will start when the user makes his first move, i need to track what the user's next move was, in order for the pc to make the correct next move. Something like
        Private Sub _1_TextChanged(sender As Object, e As EventArgs) Handles _1.TextChanged
            checkV(_1.Text)
            _5.Text = MS
            _5.Enabled = False
    'if _2.textchanged then blablbla
    'else if _3.textchanged then blablabla
    'keep on checking and making moves that will adapt to the players move
        End Sub
    

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
April 30
Gender:
Location:
Brasil
Interests:
Programing
Games
Shooting
Racing
Full Name:
Bernardo Meurer
Years Programming:
1
Programming Languages:
VB.NET (A little),C(A little),C#(A little)

Contact Information

E-mail:
Private
Skype:
Skype  Bernardo_Meurer_Costa
Twitter:
Bernardo_Meurer

Friends

Comments

Raminator has no profile comments yet. Why not say hello?