pseudocode help (1 Viewer)

blink0

New Member
Joined
Aug 10, 2004
Messages
3
Can someone help me write up a pseudocode for a simple tic-tac-toe game. Thanks in advance
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
blink0 said:
Can someone help me write up a pseudocode for a simple tic-tac-toe game. Thanks in advance

Yes.

If you can be more specific and say where you are having problems then we can help.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
blink0 said:
just a simple tic-tac-toe game which can be easily achieve in vb.

And whereabouts in this algorithm of yours are you having problems?
 
Joined
May 27, 2004
Messages
107
Gender
Male
HSC
2004
sunny i dont think blink0 has any thats why he is asking for people to write it up for him
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
I know....he's come to the wrong place for help.
 

raymes

Member
Joined
Jan 21, 2004
Messages
116
Location
Sydney
Gender
Male
HSC
2004
blink0 said:
just a simple tic-tac-toe game which can be easily achieve in vb.
lol, if its so easy to achieve in vb then what do you need help with? psuedocode and vb are almost the same thing.
 
Joined
May 27, 2004
Messages
107
Gender
Male
HSC
2004
ray... the thing is he WANTS the psuedo code for it cause he doesnt have it and then wants to convert it himself
 

raymes

Member
Joined
Jan 21, 2004
Messages
116
Location
Sydney
Gender
Male
HSC
2004
i see...
well why is he hanging around these forums where he is only going to get hounded for being lazy when he could simply go to any number of websites where he could get thousands of versions of the game (all with their own bells and whistles) in the language of his choice?
beats me
 

raymes

Member
Joined
Jan 21, 2004
Messages
116
Location
Sydney
Gender
Male
HSC
2004
zoodboog said:
Code:
BEGIN TICTACTOE
  x is an integer
  x = (x + 1) / 5
  x = 0
END TICTACTOE
oh good im glad you've got the core of the code down
now we can start implementing the AI engine
good work zood
 

SamD

Member
Joined
Jul 21, 2002
Messages
256
Gender
Male
HSC
N/A
I'll do the AI bit...

Code:
BEGIN AI_Bit
   Consider current state of board
   Think about it for a while
   Decide on best spot
   Place piece in best spot
END AI_Bit
Easy peasy!!!

HTH
Sam
 

raymes

Member
Joined
Jan 21, 2004
Messages
116
Location
Sydney
Gender
Male
HSC
2004
SamD said:
I'll do the AI bit...

Code:
BEGIN AI_Bit
   Consider current state of board
   Think about it for a while
   Decide on best spot
   Place piece in best spot
END AI_Bit
Easy peasy!!!

HTH
Sam
clean AND elegant...
im sure glad we've got some real programmers round here to show us how stuff is done
 

SamD

Member
Joined
Jul 21, 2002
Messages
256
Gender
Male
HSC
N/A
A simple copy and paste, add a few comments and the job's done...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top