Skip to content
View zm2231's full-sized avatar

Highlights

  • Pro
Block or Report

Block or report zm2231

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. ChessNeuralNet ChessNeuralNet Public

    A WIP Chess AI

    JavaScript

  2. Minimax algorithm with alpha beta pr... Minimax algorithm with alpha beta pruning
    1
    var calcBestMove = function(depth, game, playerColor,
    2
                                alpha=Number.NEGATIVE_INFINITY,
    3
                                beta=Number.POSITIVE_INFINITY,
    4
                                isMaximizingPlayer=true) {
    5
      // Base case: evaluate board
  3. Evaluate the best move using Minimax Evaluate the best move using Minimax
    1
    var calcBestMoveNoAB = function(depth, game, playerColor,
    2
                                    isMaximizingPlayer=true) {
    3
      // Base case: evaluate board
    4
      if (depth === 0) {
    5
        value = evaluateBoard(game.board(), playerColor);