Charango4554 / Chifoumi

Ce code est un programme en Java qui simule le jeu Pierre-papier-ciseaux, l'utilisateur saisit son choix et l'ordinateur génère aléatoirement le sien, les choix sont comparés pour déterminer un gagnant. Le programme compte les scores et continue à jouer jusqu'à ce qu'un joueur atteigne 5 points, Il annonce ensuite le gagnant🥳

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chifoumi

Ce code est un programme en Java qui simule le jeu Pierre-papier-ciseaux, l'utilisateur saisit son choix et l'ordinateur génère aléatoirement le sien, les choix sont comparés pour déterminer un gagnant. Le programme compte les scores et continue à jouer jusqu'à ce qu'un joueur atteigne 5 points, Il annonce ensuite le gagnant🥳

This code is a simple program written in Java that simulates the game of rock-paper-scissors. The program uses the Scanner class to allow the user to input their choice (rock, paper, or scissors), and the Math.random() function to randomly generate the computer's choice. The program then compares the user's choice to the computer's choice and determines a winner based on the rules of rock-paper-scissors. The program keeps track of the score and continues to play until one player reaches 5 points. At the end, the program prints out the final score and declares the winner.

About

Ce code est un programme en Java qui simule le jeu Pierre-papier-ciseaux, l'utilisateur saisit son choix et l'ordinateur génère aléatoirement le sien, les choix sont comparés pour déterminer un gagnant. Le programme compte les scores et continue à jouer jusqu'à ce qu'un joueur atteigne 5 points, Il annonce ensuite le gagnant🥳


Languages

Language:Java 100.0%