The classic game, played against an AI opponent. Applies the minimax algorithm to pick its moves. Coded as a multi-threaded app using a web worker.
Web workers require code to be executed from separate JavaScript files. The code here is the UI thread. If you want to see the web worker code, check out Align 4 Game (Web Worker).
Higher difficulty levels are computationally expensive, so the computer’s turn may take a while, especially on mobile devices.
Check out this Pen!
GIPHY App Key not set. Please check settings