Skip to content

dlink/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A chess program

$./game.py h c

You play white

    a   b   c   d   e   f   g   h
  ╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
8 ║ ♜ │ ♞ │ ♝ │ ♛ │ ♚ │ ♝ │ ♞ │ ♜ ║ 8
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
7 ║ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ │ ♟ ║ 7
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
6 ║   │   │   │   │   │   │   │   ║ 6
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
5 ║   │   │   │   │   │   │   │   ║ 5
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
4 ║   │   │   │   │   │   │   │   ║ 4
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
3 ║   │   │   │   │   │   │   │   ║ 3
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
2 ║ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ │ ♙ ║ 2
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
1 ║ ♖ │ ♘ │ ♗ │ ♕ │ ♔ │ ♗ │ ♘ │ ♖ ║ 1
  ╚═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╝
    a   b   c   d   e   f   g   h
Enter move, x to exit:

A game in progress

    a   b   c   d   e   f   g   h
  ╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
8 ║ ♜ │   │ ♝ │   │ ♚ │ ♝ │   │ ♜ ║ 8
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
7 ║ ♟ │ ♟ │ ♟ │ ♟ │   │ ♟ │ ♟ │ ♟ ║ 7
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
6 ║   │   │ ♞ │   │ ♟ │ ♞ │   │   ║ 6
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
5 ║   │   │   │   │   │   │ ♗ │   ║ 5
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
4 ║   │   │   │ ♙ │ ♙ │   │   │   ║ 4
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
3 ║   │   │   │   │   │ ♘ │   │   ║ 3
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
2 ║ ♙ │ ♙ │ ♙ │   │   │ ♙ │ ♙ │ ♙ ║ 2
  ╟───┼───┼───┼───┼───┼───┼───┼───╢
1 ║ ♖ │ ♘ │   │ ♕ │ ♔ │ ♗ │   │ ♖ ║ 1   ♛
  ╚═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╝
    a   b   c   d   e   f   g   h
1. e4 e6 2. d4 Qg5 3. Bxg5 Nc6 4. Nf3 Nf6

Enter move, x to exit:

About

initial steps to a computer playing chess programm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages