Code Monkey home page Code Monkey logo

ppthangman's Introduction

PPTHangman

This is a simple text-based Hangman game created during a Personal Programming Tutorial to teach object-oriented programming

Specification

  1. A session of hangman consists of any number of hangman games (until we quit the application)
  2. A hangman game can be played with any number of players, which we ask for at the start of the game
  3. At the start of the game, we pick an arbitrary "leader", before asking to start a new game
  4. In every hangman session:
    1. We ask the leader to pick a word/sentence
    2. We ask every player in turn to either guess a letter, or guess the whole word
    3. If they get the whole word correctly, they get 10 points, and the leader loses 5, and the next game starts
    4. If they get a single letter correct, they get 1 point and the according letter positions are revealed
    5. If they don't make a correct guess, we take 1 life away from the game (lives are shared amongst all non-leaders, in that given game)
    6. We continue until team runs out of lives, in which case the leader gets 10 points, or someone guesses the word
    7. We ask if we want to play another game (session)
      1. If yes, cycle the leader and start again
  5. We print the leaderboards
  6. We exit the application

Main Collaborators

  • Akhtar Syed
  • Victor-Gabriel Apostol
  • Yoram Boccia
  • Ossama Chaib
  • Justin Chong
  • Dhru Devalia
  • Pablo Gamito
  • Hadrian Lim Wei Heng

ppthangman's People

Contributors

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