first commit
This commit is contained in:
commit
91f987df09
19
chess_com.py
Normal file
19
chess_com.py
Normal file
@ -0,0 +1,19 @@
|
||||
#task make a chess game
|
||||
|
||||
import numpy as np
|
||||
|
||||
piece = {'Pawn' : 1,'Knigt' : 2,'Bishop' : 3,'Rook' : 5, 'Quenn' : 9,'King' : 10} #assign a value at every piece
|
||||
|
||||
def chess_board_empty(): #affiche le plateau d'echec sous forme de matrice 8*8 vide
|
||||
board_empty = np.zeros((8,8))
|
||||
return board_empty
|
||||
|
||||
print(chess_board_empty())
|
||||
|
||||
def chess_board():
|
||||
board_empty = chess_board_empty()
|
||||
n = range(len(board_empty))
|
||||
m = range(len(board_empty[0]))
|
||||
for i in n:
|
||||
for j in m:
|
||||
pass
|
6
move_ and_piece_of_chess.py
Normal file
6
move_ and_piece_of_chess.py
Normal file
@ -0,0 +1,6 @@
|
||||
Pawn = 1
|
||||
Knigt = 2
|
||||
Bishop = 3
|
||||
Rook = 5
|
||||
Quenn = 9
|
||||
King = 10
|
Loading…
Reference in New Issue
Block a user