Skip to content

Commit

Permalink
Test just the e4 e6 position
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Aug 30, 2024
1 parent 29b6640 commit b87ac73
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/stockfish/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ def send_command(process, command: str):
class TestStockfish:

def test_sf_process(self):
# Get the path to the current directory
current_dir = os.path.dirname(os.path.abspath(__file__))

# Path to the stockfish executable
stockfish_path = os.path.join(current_dir, "stockfish")

# Start the stockfish process
process = subprocess.Popen(
"stockfish",
Expand All @@ -42,25 +36,10 @@ def test_sf_process(self):
stderr=subprocess.PIPE,
text=True,
)

send_command(process, "uci")
send_command(process, "isready")

send_command(
process,
"position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
)
send_command(process, "go depth 1 searchmoves e2e4")
send_command(
process,
"position fen rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1",
)
send_command(process, "go depth 1 searchmoves e7e6")
send_command(
process,
"position fen rnbqkbnr/pppp1ppp/4p3/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2",
)

wtime_lines = send_command(process, "go wtime 1000")
btime_lines = send_command(process, "go btime 1000")
send_command(process, "quit")
Expand Down

0 comments on commit b87ac73

Please sign in to comment.