Giter VIP home page Giter VIP logo

charango4554 / chifoumi Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

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🥳

Java 100.00%

chifoumi's Introduction

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.

chifoumi's People

Contributors

charango4554 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.