Bots #23

Merged
Simponic merged 4 commits from bots into main 2023-05-29 19:28:27 -04:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 81d04d34ca - Show all commits

View File

@ -353,7 +353,7 @@ defmodule Chessh.SSH.Client.Game do
from,
to,
%State{
game: %Game{game_moves: game_moves, id: game_id, turn: turn},
game: %Game{id: game_id, turn: turn},
binbo_pid: binbo_pid,
flipped: flipped,
color: turn

View File

@ -307,7 +307,7 @@ defmodule Chessh.Web.Endpoint do
{:ok, status} ->
{:ok, fen} = :binbo.get_fen(binbo_pid)
{:ok, %Game{status: after_move_status} = game} =
{:ok, %Game{} = game} =
game
|> Game.update_with_status(attempted_move, fen, status)
|> Repo.update()