Checkers Komputer - a checkers playing AI, built as a warm up for other games.
These are versions of this script where the code was updated. Show all versions.
Made script public.
Make this script public.
If a user move is ready, send it first, before playing the next turn. Added this update, since it's easy for a user to forget to send a move, and this seems the most intuitive, user-friendly solution. Otherwise, the AI will undo the user move and make its own move - something the user probably did not intend. This could be remedied with an undo button, but that makes the whole process longer and adds the expectation that all moves can be undone, which is not how GBE tends to operate. There is some undo support already - adding more would degrade the fun, since there's no feeling of high-stakes if everything is reversible.
Clean up - remove some comments.
Position AI control button closer to the board.
Set control button to use fixed positioning, like the game board.
Run AI algorithm on web worker.
Updated description.