Last active
December 6, 2022 17:21
-
-
Save cazeip/fe6cdc762b2aacb5ddb6df4fea2993cd to your computer and use it in GitHub Desktop.
destalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This comment was added automatically to allow this file to save. | |
# You'll be able to remove it after adding text to the file. | |
from random import * | |
def cartes1(n): | |
coul=['Trefle','Carreau','Coeur','Pique'] | |
vale=['7','8','9','10','Valet','Dame','Roi','As'] | |
main=[] | |
while len(main)<n: | |
carte="{} de {}".format(choice(vale),choice(coul)) | |
if carte not in main : main.append(carte) | |
return main | |
def cartes2(n,p): | |
echantillonage=1 | |
bloquage=1 | |
quantification=1 | |
coul=['Trefle','Carreau','Coeur','Pique'] | |
vale=['7','8','9','10','Valet','Dame','Roi','As'] | |
jeu,mains=[],[] | |
for c in coul: | |
for v in vale: | |
jeu.append("{} de {}".format(v,c)) | |
for i in range(p): | |
main=[] | |
while len(main)<n: | |
main.append(jeu.pop(randrange(len(jeu)))) | |
mains.append(main) | |
return mains | |
nb_cartes,nb_joueurs=8,4 | |
jeux=cartes2(nb_cartes,nb_joueurs) | |
for i in range(nb_joueurs): | |
v=1 | |
r=1 | |
N=2 #en rps | |
angular= v/r | |
angular= 2*3.14*N | |
print("Joueur {}:".format(i+1)) | |
print(" - ".join(jeux[i])) | |
prot_against_env() | |
size() | |
resolution() | |
tech('incre' || 'abs') | |
tension('alim' && 'exit') | |
if tech == incr: | |
angle_detection() | |
get(ccw || cw) | |
price-- | |
initialisation_run() | |
elif tech == absolute: | |
position_detection() | |
info = when_powered(immediately) | |
if single_round: | |
only_one_round() | |
else if multiple: | |
complex_mechanism() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment