@bendn/stockfish.gd

2.1.2 • Public • Published

stockfish

Usage

extends Node

var fish: Stockfish


func _ready() -> void:
  var loader := StockfishLoader.new()
  fish = loader.load_stockfish()
  fish.game = Chess.new()
  while not fish.game.game_over():
    fish.go(5)
    var bestmove = yield(fish, "bestmove")
    prints("bestmove", "is", fish.game.move(bestmove).san)
    fish._position()
  print(fish.game.pgn(), "\n", fish.game.fen())

/@bendn/stockfish.gd/

    Package Sidebar

    Install

    npm i @bendn/stockfish.gd

    Weekly Downloads

    7

    Version

    2.1.2

    License

    MIT

    Unpacked Size

    46.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • bendn