The document summarizes Connect 4 and algorithms that can be used to solve the game in an AI setting. It describes Connect 4 as a two-player game where the objective is to get four pieces in a row vertically, horizontally, or diagonally. It then discusses the minimax algorithm as one approach an AI could use to solve the game by trying to maximize its own score while minimizing the opponent's score. Finally, it provides a brief overview of the program created, which uses JavaScript, HTML, CSS and the p5.js library to implement Connect 4 between a computer and human player.
The document summarizes Connect 4 and algorithms that can be used to solve the game in an AI setting. It describes Connect 4 as a two-player game where the objective is to get four pieces in a row vertically, horizontally, or diagonally. It then discusses the minimax algorithm as one approach an AI could use to solve the game by trying to maximize its own score while minimizing the opponent's score. Finally, it provides a brief overview of the program created, which uses JavaScript, HTML, CSS and the p5.js library to implement Connect 4 between a computer and human player.
The document summarizes Connect 4 and algorithms that can be used to solve the game in an AI setting. It describes Connect 4 as a two-player game where the objective is to get four pieces in a row vertically, horizontally, or diagonally. It then discusses the minimax algorithm as one approach an AI could use to solve the game by trying to maximize its own score while minimizing the opponent's score. Finally, it provides a brief overview of the program created, which uses JavaScript, HTML, CSS and the p5.js library to implement Connect 4 between a computer and human player.
The document summarizes Connect 4 and algorithms that can be used to solve the game in an AI setting. It describes Connect 4 as a two-player game where the objective is to get four pieces in a row vertically, horizontally, or diagonally. It then discusses the minimax algorithm as one approach an AI could use to solve the game by trying to maximize its own score while minimizing the opponent's score. Finally, it provides a brief overview of the program created, which uses JavaScript, HTML, CSS and the p5.js library to implement Connect 4 between a computer and human player.
Zumrud Mammadli What is Connect 4? • Connect Four is a two-player game with perfect information for both sides, meaning that nothing is hidden from anyone where the object of the game is to get four or more pieces of your color in a line vertically, horizontally, or diagonally. AI algorithms to solve the game • Solution algorithms for AI are numerous and can be complex. And way to solve this game we have multiple choices to choose and work on. AI METHODS Minimax Algorithm
•2 opponents – MIN and MAX
(Computer and The Player • When it is the player’s turn, he/she wants to choose the best possible move that will lead to maximizing his/her score. But when it comes to next turn, the computer will try to maximize its own score and minimize the player’s score. Our Minimax Function Our Program: • Consists of js, html, css files • Made use of p5.js library • Computer starts: • Human: • As soon as winner is found board disappears and winner is declared Future Developments