hi
can any1 send coding for a tic tac toe game wit command buttons has the board.
plss help thxx :)
Printable View
hi
can any1 send coding for a tic tac toe game wit command buttons has the board.
plss help thxx :)
Nope, try the *game* forum section of this site...and try *google*
We don't write code for you, we help you with your coding skills
ohh okk thx anyways
hai
first you need to progr/-\m auto moves:
1. Can comp win, move FTW.
2. Does comp have to block, comp needz to avoid teh suxorz.
COMP MOVES FIRST:
Now comes the strategy, the best strategy is to take a corner first.
If the comp is going first then its first move should be teh corner.
If the middle is taken by the other player then teh comp takez the opposite corner (o is the comp x is the player) as this increases the chances for the comp to win over selecting an adjacent corner, as this does not force your opponet to block you, and means they may make the wrong next move and slip up giving comp teh w!n.
o.. ..o
.x. .x.
..o o..
If the adjacent corner is taken by their opponent:
o.x
...
...
Then comp goes:
o.x
o..
...
Then comp takez the middle as third move and you have it.
If the opposite corner is taken by the opponent as their first move, comp takes an adjacent corner, then the other which results in teh w!n
If opponent takes a non corner then comp takes middle then a remaining corner FTW.
the only winning move is 2 only play a nub. kthxxbye.