Qbasicnews.com

Full Version: stuck yet again
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
that right there is what ive done so far..ive been stuck on what to do for this game from there for about a week Sad
I cant get in.It is tellin me that the account is private.
www.quickhost.tk post there Big Grin
k thanks for the tip bout the quickhosting thing, but seems to be in german so i couldnt really find my way around. The first link I posted shoullld work now..

O and its the first page of the slideshow
render, I can send you my own crappy Tic Tac Toe program if you wish Smile All I need is an email address or similar. Maybe you could learn from that program which I made ages ago... Wink It's got a "almost-unbeatable" (semi-hardcoded) AI.
....
something like this:

'computer wants to move randomly into an unoccupied space

start loop
set x = random number 1 to 3
set y = random number 1 to 3
end loop when board(x,y) is unoccupied

'now x and y point at an unoccupied space

in code it would look something like this:

Code:
PRINT "Computer is deciding where to go..."
DO
  x% = INT(RND * 3) + 1
  y% = INT(RND * 3) + 1
LOOP UNTIL Board(x%, y%) = 0
PRINT "Computer has decided to go on (" ; x% ; "," ; y% ; ")"
Quote:k thanks for the tip bout the quickhosting thing, but seems to be in german so i couldnt really find my way around.

wtf? did u even visit the link? Its in english?! :x
Unless I have a babelfish (which I'm certain I do not) It's in english.

Also, unless I missed something, wouldn't it be easier if you just posted the code?
k..Yea, i did visit the link & the link didn't work..soo i searched for the sight in google, and the only link that did work was definately not in english..maybe something with my browser..computer i dunno.
Pages: 1 2