Coder Social home page Coder Social logo

oktoberfest-challenge's Introduction

Oktoberfest Challenge

Oktoberfest Challenge Image

The logic of this game is very simple. Once it is run, there is a window where it explains the rules of how to play the game. Rules: there are two players, and a pack of beers. Each user takes turns to drink beers from the pack, and should drink only 1 to 3 beers each time. The player who drinks the last beer in the pack loses the game, and has to buy a new pack of beers. The other player is a winner, and gets to drink for free. On this window, there is a button that says “Play Now”, which starts the game.

Once the game is started, there will be 14 beers on the top to select from, and “Drink” button to drink the selected beers, and two places which shows the number of beers each player drinks. Players click on the beers to determine how many they want to drink each time, and presses the “Drink” button to drink them. Once the button is clicked, the selected beers disappear, and the number is written down on the players’ score accordingly. They keep doing this until the last one is drunk. When the last one is drunk, it brings up a new window where it shows the winner and the loser. On this page, there is also a “Play Again” button, where players can start over without quitting and restarting the game.

Instructions to run the game

  • Clone the repo or download it as .zip file.
  • Run the oktoberfest_challenge.py file, make sure you have python installed on your machine, and
  • Enjoy the game!

oktoberfest-challenge's People

Contributors

dostonbek1 avatar

Stargazers

 avatar

Watchers

 avatar  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.