mon prototype

This commit is contained in:
Mat 2023-02-13 16:20:05 +01:00
parent 1c34d22467
commit 29b73a31b3

43
prototypes/cat_puzzle.py Normal file
View File

@ -0,0 +1,43 @@
import os
game = True
while game:
print('Bienvenue dans le jeu cat puzzle')
print('Decouvrons ensemeble le premier niveau') #make a first level
level_one = [(1,1,1),(1,1,0),(1,1,1)]
print(level_one[0])
print(level_one[1])
print(level_one[2])
print('Voila les piece que vous disposez pour completer le puzzle') #make piece for resolve the puzzle
nbr_piece = 3
piece_one = [(1,1),(1,0)]
piece_two = [(1,0),(1,0),(1,0)]
piece_three = [(1,1)]
print('Voila la piece 1:') #show the piece at the player
for i in piece_one:
print(i)
print('Voila la piece 2:')
for i in piece_two:
print(i)
print('Voila la piece 3:')
for i in piece_three:
print(i)
choose_piece = 0
while choose_piece ==0:
choose_piece = input('Choissisez la piece que vous voulez bouger ? ') #choice of the piece to move
try:
choose_piece = int(choose_piece)
except ValueError:
choose_piece =0
print('J\'ai besoin d\'un nombre')
game=False
os.system('pause')