lx_chess_cr/spec/lx_chess/computer_spec.cr
2021-10-02 19:12:06 -04:00

17 lines
393 B
Crystal

require "../spec_helper"
require "../../src/lx_chess/computer"
require "../../src/lx_chess/board"
require "../../src/lx_chess/piece"
include LxChess
describe Computer do
describe "#board_score" do
it "scores the board" do
computer = Computer.new
game = Game.new
game.board["e4"] = Piece.from_fen('P')
computer.board_score(game).should eq(100)
end
end
end