I am working on a dual user board game in html5 / JavaScript. the two-player version is almost complete. I want to add single player mode where the computer will be an adversary. this game will play in one browser (without server-side integration).
I am new to AI. I need some guidelines for implementing AI in JavaScript games, where do I start?
Please, help.
Edited: Game Bagh-Chal
Thanks for the answers: I managed to implement Minimax in baghchal. Here .
Bagh-Chal Minimax -.
, CS Recitation Minimax --. , .
( , ..), , -.
1: (A) JavaScript.
2: (B) AI .
3: B A.
4: ; 2.
-, , - , , , , .
, , , . - , .
Minimax, , , ( , ) , , ( , , )
( ), Minimax AI, ( ). Minimax , . , , , ( AI , , , , , )
, .. , , .
"A.I." , , , . - Neural Network.
AI. . , . javasccript , : , , , . shoudl wiev . , , , . , - - .
, , js.
, XOX
3x3, 3 X O ,
_|_|_ _|_|_ | |
x|o|_ _|x|o |o|x
, .
.
X O ( X O), , .
2 X ? , O 2 X.
2 X, , - ?
_|x|_ _|_|x o| |
( if-else), . , .
? hmmm.first X , .
. .
Source: https://habr.com/ru/post/1789336/More articles:Invalid base-64 char array length - c #Ruby / Rails reporting tools? - ruby-on-railsself.view / super.view - superIs the formatting correct? - visual-studio-2008mysql - how do I get a list starting with a letter and continue with the following letters? - mysqlStack-based maze exploration - c ++Best Practice for Progress Bar in Python PyGTK - pythonRewrite (translate) the page portion of a URL in Wordpress - wordpressUsing spaces in URLs and .htaccess - url-rewritingResizing photos as thumbnails such as Flickr and Facebook photostreams? - facebookAll Articles