Skip to content

bensmus/connect_four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Source code for JavaScript connect four with 'local PVP' and 'vs computer' modes. Try it out

How 'vs computer' works

The computer uses depth 5 minimax with a heuristic function which prefers placing tokens in the center of the board.

The core of the algorithm is in the getMinimaxScore(depthLimit) function in gameAnalysis.js.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors