Skip to content

HyoungSooo/TerminalChessEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal chsss engine

run

git clone https://github.com/HyoungSooo/TerminalChessEngine.git
cd TerminalChessEngine
  • in main.py you have to install stockfish and write correct path in
def main():
    board = cb("<stockfish path here>")
  • start
python main.py

you can choose puzzle mode or battle mode with stockfish

puzzle

1) Start puzzle, 2) Battle with stockfish 3) exit
Enter mode : 1
+---+---+---+---+---+---+---+---+
| ♖ |   | ♗ |   | ♖ |   | ♔ |   | 8
+---+---+---+---+---+---+---+---+
| ♙ |   | ♙ |   |   |   | ♙ | ♙ | 7
+---+---+---+---+---+---+---+---+
|   | ♗ | ♙ |   |   |   |   |   | 6
+---+---+---+---+---+---+---+---+
|   |   |   |   | ♟ | ♙ |   |   | 5
+---+---+---+---+---+---+---+---+
|   |   |   | ♞ | ♙ |   |   |   | 4
+---+---+---+---+---+---+---+---+
|   |   |   |   | ♝ |   |   |   | 3
+---+---+---+---+---+---+---+---+
| ♟ | ♟ | ♟ |   |   | ♟ | ♟ | ♟ | 2
+---+---+---+---+---+---+---+---+
| ♜ |   |   |   |   | ♜ | ♚ |   | 1
+---+---+---+---+---+---+---+---+
  a   b   c   d   e   f   g   h


computer moves  :  f1e1
+---+---+---+---+---+---+---+---+
|   | ♚ |   | ♜ |   |   |   | ♜ | 1
+---+---+---+---+---+---+---+---+
| ♟ | ♟ | ♟ |   |   | ♟ | ♟ | ♟ | 2
+---+---+---+---+---+---+---+---+
|   |   |   | ♝ |   |   |   |   | 3
+---+---+---+---+---+---+---+---+
|   |   |   | ♙ | ♞ |   |   |   | 4
+---+---+---+---+---+---+---+---+
|   |   | ♙ | ♟ |   |   |   |   | 5
+---+---+---+---+---+---+---+---+
|   |   |   |   |   | ♙ | ♗ |   | 6
+---+---+---+---+---+---+---+---+
| ♙ | ♙ |   |   |   | ♙ |   | ♙ | 7
+---+---+---+---+---+---+---+---+
|   | ♔ |   | ♖ |   | ♗ |   | ♖ | 8
+---+---+---+---+---+---+---+---+
  h   g   f   e   d   c   b   a

Enter move :

battle

1) Start puzzle, 2) Battle with stockfish 3) exit
Enter mode : 2
+---+---+---+---+---+---+---+---+
| ♖ | ♘ | ♗ | ♕ | ♔ | ♗ | ♘ | ♖ | 8
+---+---+---+---+---+---+---+---+
| ♙ | ♙ | ♙ | ♙ | ♙ | ♙ | ♙ | ♙ | 7
+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   | 6
+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   | 5
+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   | 4
+---+---+---+---+---+---+---+---+
|   |   |   |   |   |   |   |   | 3
+---+---+---+---+---+---+---+---+
| ♟ | ♟ | ♟ | ♟ | ♟ | ♟ | ♟ | ♟ | 2
+---+---+---+---+---+---+---+---+
| ♜ | ♞ | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ | 1
+---+---+---+---+---+---+---+---+
  a   b   c   d   e   f   g   h

Enter level(must be int) 1 ~ 20 : 10
1) enter move, 2) evaluation, 3) get best moves(count : 3), 4) exit (enter only number (ex : 3)) : 1
['g1h3', 'g1f3', 'b1c3', 'b1a3', 'h2h3', 'g2g3', 'f2f3', 'e2e3', 'd2d3', 'c2c3', 'b2b3', 'a2a3', 'h2h4', 'g2g4', 'f2f4', 'e2e4', 'd2d4', 'c2c4', 'b2b4', 'a2a4']
Enter move :

enjoy!

About

solving chess puzzle or playing game with stockfish

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages