puissance4.py

Created by marius-layan

Created on February 05, 2024

1.7 KB

Voici une reconstitution du jeu puissance 4, un je de société bien connu. Le but est simple: Tour à tour, 2 joueurs placent un pion dans la colonne de leur choix, le pion coulisse alors jusqu’à la position la plus basse possible, le vainqueur est le joueur qui réalise le premier un alignement (horizontal, vertical ou diagonal) consécutif d’au moins quatre pions de sa couleur. (je n’ai pas pu implémenter la victoire d’un joueur, donc c’est à vous d’être attentif, comme dans le vrai jeu)

pour changer de colonne: [LEFT] ou [RIGHT]

pour valider: [OK]

BON JEU !


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.