first commit

This commit is contained in:
Mat 2022-11-15 14:34:14 +01:00
commit 91f987df09
2 changed files with 25 additions and 0 deletions

19
chess_com.py Normal file
View 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

View File

@ -0,0 +1,6 @@
Pawn = 1
Knigt = 2
Bishop = 3
Rook = 5
Quenn = 9
King = 10