-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from VincentAuriau/actions/black
Format Python code with psf/black push
- Loading branch information
Showing
3 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
if __name__ == "__main__": | ||
import sys | ||
import sys | ||
|
||
sys.path.append("../pyalapin") | ||
import os | ||
import stockfish | ||
sys.path.append("../pyalapin") | ||
import os | ||
import stockfish | ||
|
||
from pyalapin.player.stockfish_player import StockfishPlayer | ||
from pyalapin.player.player import Player | ||
from pyalapin.engine import ChessGame | ||
from pyalapin.player.stockfish_player import StockfishPlayer | ||
from pyalapin.player.player import Player | ||
from pyalapin.engine import ChessGame | ||
|
||
from settings import settings | ||
from settings import settings | ||
|
||
sfp = StockfishPlayer(settings["stockfish_path"], white_side=True) | ||
game = ChessGame() | ||
co1, co2 = sfp.get_move_from_fen(game.to_fen()) | ||
game.board.draw() | ||
sfp = StockfishPlayer(settings["stockfish_path"], white_side=True) | ||
game = ChessGame() | ||
co1, co2 = sfp.get_move_from_fen(game.to_fen()) | ||
game.board.draw() | ||
|
||
# sfp.quit() | ||
from pyalapin.interface import ChessApp | ||
sfp = StockfishPlayer(settings["stockfish_path"], white_side=False) | ||
app = ChessApp(w_player=Player(True), b_player=sfp, play_with_ai=True) | ||
app.run() | ||
# sfp.quit() | ||
from pyalapin.interface import ChessApp | ||
|
||
sfp = StockfishPlayer(settings["stockfish_path"], white_side=False) | ||
app = ChessApp(w_player=Player(True), b_player=sfp, play_with_ai=True) | ||
app.run() |