[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2022-07-21T02:50:49-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/14868 2022-07-21T02:50:33-05:00 2022-07-21T02:50:33-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39278#p39278 <![CDATA[The AI Thread]]>
desktop 1_013.png

Below attached is my THEARBTICTACTOEV3X3PROGRAM








A.R.B :)

Statistics: Posted by Anthony.R.Brown — Thu Jul 21, 2022 2:50 am


]]>
2022-07-21T02:50:49-05:00 2022-07-21T02:50:06-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39277#p39277 <![CDATA[The AI Thread]]>
desktop 1_010.png
desktop 1_011.png
desktop 1_012.png

Statistics: Posted by Anthony.R.Brown — Thu Jul 21, 2022 2:50 am


]]>
2022-07-19T03:33:51-05:00 2022-07-19T03:25:24-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39273#p39273 <![CDATA[The AI Thread]]>
desktop 1_007.png
desktop 1_008.png
desktop 1_009.png

Statistics: Posted by Anthony.R.Brown — Tue Jul 19, 2022 3:25 am


]]>
2022-07-19T03:33:29-05:00 2022-07-19T03:24:16-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39272#p39272 <![CDATA[The AI Thread]]>
desktop 1_004.png
desktop 1_005.png
desktop 1_006.png

Statistics: Posted by Anthony.R.Brown — Tue Jul 19, 2022 3:24 am


]]>
2022-07-19T03:49:56-05:00 2022-07-19T03:21:29-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39271#p39271 <![CDATA[The AI Thread]]>
desktop 1_001.png
desktop 1_002.png
desktop 1_003.png

Statistics: Posted by Anthony.R.Brown — Tue Jul 19, 2022 3:21 am


]]>
2021-06-03T13:47:09-05:00 2021-06-03T13:47:09-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39121#p39121 <![CDATA[Re: The AI Thread]]>
https://towardsdatascience.com/neural-n ... 0842fac0a5




A.R.B :)

Statistics: Posted by Anthony.R.Brown — Thu Jun 03, 2021 1:47 pm


]]>
2021-05-24T05:01:15-05:00 2021-05-24T05:01:15-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39106#p39106 <![CDATA[Re: The AI Thread]]>
http://www.petesqbsite.com/phpBB3/viewt ... 104#p39104


Rowan Gilmore, studied at University of Cambridge

There are 255168 possible game of Tic-tac-toe excluding symmetry. The first player wins 131184 of these, the second player wins 77904 games and the remaining 46080 are drawn.
As has been pointed out, with best play all games should result in a draw. Hence although there are 209088 winning games, many of these would almost never occur in practice.
For those interested, the python code I used to simulate this is given below:


Would it be possible to convert the code below to run in QB64 ?


nWinO, nWinX, nDraw = 0, 0, 0

def recurse(board, toMove):
global nWinO, nWinX, nDraw

def win(board, player):
return (any(all(board[j] == player for j in range(3)) for i in range(3)) or
any(all(board[j] == player for i in range(3)) for j in range(3)) or
all(board == player for i in range(3)) or
all(board[2-i] == player for i in range(3)))

def draw(board): return all(board[j] != '' for i in range(3) for j in range(3))

if win(board, 'O'): nWinO += 1
elif win(board, 'X'): nWinX += 1
elif draw(board): nDraw += 1
else:
for i in range(3):
for j in range(3):
if board[j] == '':
board[j] = toMove
recurse(board, 'X' if toMove == 'O' else 'O')
board[j] = ''

recurse([['','',''],['','',''],['','','']], 'O')

print("There are %d possible games (excluding symmetry), of which O wins %d, X wins %d and %d are drawn." % (nWinO+nWinX+nDraw,nWinO,nWinX,nDraw))

Statistics: Posted by Anthony.R.Brown — Mon May 24, 2021 5:01 am


]]>
2021-05-23T14:20:51-05:00 2021-05-23T14:20:51-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39105#p39105 <![CDATA[Re: The AI Thread]]>
http://www.petesqbsite.com/phpBB3/viewt ... 104#p39104

Statistics: Posted by Anthony.R.Brown — Sun May 23, 2021 2:20 pm


]]>
2021-05-24T14:07:01-05:00 2021-05-21T13:47:43-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39103#p39103 <![CDATA[Re: The AI Thread]]> The Original OXAUTOLN1 23/02/2002 is now working 100% after removing the Arrays problems! :)

The New! Updated version of the program is attached OXAUTOLN1UPDATE,it is nothing fancy just basic play,first I had to get it to this stage,now I can remake the GENIUS version with all the bells & whistles,the main difference with the first GENIUS version,and the New one is that it will also be possible to play the Original against the GENIUS version :)

This version is now with all the other versions below...



A.R.B

Statistics: Posted by Anthony.R.Brown — Fri May 21, 2021 1:47 pm


]]>
2021-05-23T08:16:29-05:00 2021-05-16T13:36:31-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39100#p39100 <![CDATA[Re: The AI Thread]]> ...




A.R.B

Statistics: Posted by Anthony.R.Brown — Sun May 16, 2021 1:36 pm


]]>
2021-05-09T03:23:28-05:00 2021-05-09T03:23:28-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39098#p39098 <![CDATA[The AI Thread]]>

Below is a link explaining more about it…

en.wikipedia.org/wiki/Artificial_intelligence

And another view on it…

joshworth.com/stop-calling-in-artificial-intelligence


Related to this AI thread I am about to release the latest version of my OXAUTOLN3X3GENIUS Tic-Tac-Toe Auto learning program the perfect and final version :)
You might ask why the delay ? :( well I have had a week or two of inspiration and problem solving with it,where I solved three important things!,the last one turned out to be better left as it was ? Because it left out an important thing regarding learning,compared to how the Human brain works,even though we solve things we never delete the mistakes from our learning process ? And it’s how we can compare the past to the present and hopefully the future,and how we improve our learning.
The other reason is in this inventive creative two weeks ? I have invented a New type of AI Engine for my Tic-Tac-Toe program and other things! :),it will not replace the original as I am sure it’s not as good ? I will also try a version combining both the Engines,so I am busy until I have exhausted all possibilities.
Both will be in the program as a player option for Humans to play against,and for them to play each other as well as a Random player.
The name of my New AI Engine is WOPR(AI) (War Operation Plan Response) the Super Computer from the May 7,1983 film Wargames,where after it plays itself until near self destruction at Tic-Tac-Toe to a Draw! it makes the famous quote "The only winning move is not to play."

The Wargames link is below…

en.wikipedia.org/wiki/WarGames

And the famous WOPR Tic-Tac-Toe game is below…

www.youtube.com/watch?v=F7qOV8xonfY




Anthony.R.Brown

Statistics: Posted by Anthony.R.Brown — Sun May 09, 2021 3:23 am


]]>